some screenshots are here:
http://www.vonautomatisch.at/django/filebrowser/
you can download the filebrowser here:
http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip
installation shouldn´t take more than 5-10 minutes.
requirements: we are using PIL to create the thumbnails.
this version is for testing (although we´re already using it). I hope
that some of you will find the time to install the filebrowser.
feedback is more than welcome.
thanks,
patrick
It's highly probable that I'll use this soon. When I do, I'll make
sure to give you feedback and contribute back with something of
course.
Thank you for releasing this, it will be very useful for a project we
will work on soon.
Cheers,
Jorge
thanks for releasing.
1. to make it work on Python 2.3, you need to change
line 198 in views.py
file_list.sort(cmp, lambda x: x[int(o)])
to
file_list.sort(lambda x, y: cmp(x[int(o)], y[int(o)]))
(sort method takes only the comparisson function as a parameter in
Python 2.3)
2. The links in the admin breadcrubs are not relative as in the
original admin, therefore I need to change all templates if I have my
django project in some directory instead of in the root of the domain.
3. If I upload an image to the root of uploads, the thumbnail isn't
showed, because of additional slash in the path that is added next to
the dir_name which doesn't exist. I think, you should also check
whether dir_name is set at all, and only then add that slash at the
end.
4. It works in Firefox, but it seems a little bit strange and may not
work in other browsers, because all the uploaded images are being
accessed with additional slash at the end of the URL.
That were my notices. But on the whole, great work!
Aidas Bendoraitis [aka Archatas]
Any plans for a SVN address?
-Phil
I will take a look at the bugs mentioned by archatas - so there'll
probably be a new version for download later today.
SVN: I´ve never worked with SVN (well, besides using django), no idea
how to do the setup. It´d be very useful but I don´t have the time to
digg into that right now.
patrick
CHANGES:
001: You may define an initial directory for each FileBrowseField by
adding a path to the help_text: Like "FileBrowser: /images/blog/" or
"FileBrowser: /documents/pdf/".
002: Sorting algorithm also works with Python 2.3 now (thanks Archatas)
003: Additional slashes are only used for folders now
I still need to look at the breadcrumbs.
thanks for your feedback,
patrick
-Phil
change line 170 of filebrowser/views.py from
path_to_file = '/media/img/filebrowser_Thumb.gif'
to
path_to_file = '/media/img/filebrowser/filebrowser_Thumb.gif'
note: our hosting-provider has setup trac for us. so, hopefully we'll
have an SVN address soon.
patrick
One proposition to add to views.py just below the variable declaration
block:
for (k,v) in EXTENSIONS.items():
for e in v[:]:
v.append(e.upper())
which makes extension lookup work for uppercase as well.
And one glitch that occurs on winXP/IE6:
An extra debug upload button appears. On firefox, <!--> xxx <-->
correctly comments out the xxx, in internet explorer, [upload] <-->
[upload] gets displayed.
Best, Niels
Seems that whenever I click on the thumbnail link, or the "delete"
link, a blank filebrowser index page is returned to me. The URL seems
to be formed properly in the form:
/admin/filebrowser/makethumb/my_file.jpg
Seems to be rendering the response, but with no context returned. Any ideas?
-Phil