wardi / django-filebrowser-no-grappelli

django-filebrowser for default Django admin site. Based on https://github.com/sehmaschine/django-filebrowser v3.1 (before it was in git) Consider using https://github.com/smacker/django-filebrowser-no-grappelli which is based on a newer version
Other
150 stars 114 forks source link

Issue with files without creation date #36

Closed Lehych closed 12 years ago

Lehych commented 12 years ago

views.py:91 runs get_filterdate() with fileobject.date as second param. date property can return empty string. But get_filterdate() passes this date directly to time.gmtime(). And this method does not support empty string as param. Only None could be passes as empty value. This coused Exception on win platform for me with some buggy file on filesystem. Unfortunatly for now I can not reproduce issue with this file since the lack of time.

wardi commented 12 years ago

Sorry, this is too little to go on. If you suggest a patch I'll take a look