Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add User reference in FileObject #39

Closed
20 opened this issue Oct 28, 2011 · 6 comments
Closed

Add User reference in FileObject #39

20 opened this issue Oct 28, 2011 · 6 comments

Comments

@20
Copy link

20 commented Oct 28, 2011

Hi,

I'm working on a django application to save files also in a git-annex repository to create distributed media repository. I'd like to integrate to django-filebrowser. Is there any idea to include some reference to the user in fileobject as a owner? I saw there was some people in the old issue tracking on google code that was looking for something similar.

Thanks,
Vince

@sehmaschine
Copy link
Owner

what exactly do you mean by "owner"? the person who uploaded the file? could you even spot that with os (or stat)?

@sehmaschine
Copy link
Owner

if you´re talking about djangos auth.user, that´s not being stored with the file – so there´s no option to retrieve that information.

@20
Copy link
Author

20 commented Oct 28, 2011

Hi,

I mean the person who uploaded the file. For files not uploaded from django can leave owner unset and give the admin (or some group/role) set ownership. This update could give the possibility to integrate filebrowser in a wider range of situation-application.

@sehmaschine
Copy link
Owner

where is this user being stored? how could we get that information with a fileobject?

@20
Copy link
Author

20 commented Oct 28, 2011

Ehm.. I don't know :) filebrowser create fileobject on the fly? :) I supposed that the fileobject was persistent, so you could store a reference to the user. So.. any idea?

@sehmaschine
Copy link
Owner

no idea here. please reopen again if you have a proposal. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants