fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f1aa11d
)
More fixes in Filebrowser.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Wed, 3 Mar 2010 08:30:40 +0000
(09:30 +0100)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Wed, 3 Mar 2010 08:30:40 +0000
(09:30 +0100)
apps/filebrowser/base.py
patch
|
blob
|
history
diff --git
a/apps/filebrowser/base.py
b/apps/filebrowser/base.py
index
da53d91
..
4f0a024
100644
(file)
--- a/
apps/filebrowser/base.py
+++ b/
apps/filebrowser/base.py
@@
-5,6
+5,7
@@
import locale
import os, re, datetime
from time import gmtime, strftime
from django.conf import settings
+from django.utils.encoding import smart_unicode
import urllib
# filebrowser imports
@@
-34,7
+35,7
@@
class FileObject(object):
"""
def __init__(self, path):
- self.path =
unicode(path)
+ self.path =
path
self.head = os.path.split(path)[0]
self.filename = os.path.split(path)[1]
self.filename_lower = self.filename.lower() # important for sorting