fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
016f764
)
More fixes in Filebrowser.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Wed, 3 Mar 2010 08:27:17 +0000
(09:27 +0100)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Wed, 3 Mar 2010 08:27:17 +0000
(09:27 +0100)
apps/filebrowser/views.py
patch
|
blob
|
history
diff --git
a/apps/filebrowser/views.py
b/apps/filebrowser/views.py
index
b507a75
..
32f79c2
100644
(file)
--- a/
apps/filebrowser/views.py
+++ b/
apps/filebrowser/views.py
@@
-17,7
+17,7
@@
from django.core.urlresolvers import reverse
from django.core.exceptions import ImproperlyConfigured
from django.dispatch import Signal
from django.core.exceptions import ImproperlyConfigured
from django.dispatch import Signal
-from django.utils.encoding import smart_unicode
+from django.utils.encoding import smart_unicode
, smart_str
# filebrowser imports
from filebrowser.fb_settings import *
# filebrowser imports
from filebrowser.fb_settings import *
@@
-76,7
+76,7
@@
def browse(request):
results_var['results_total'] += 1
# CREATE FILEOBJECT
results_var['results_total'] += 1
# CREATE FILEOBJECT
- fileobject = FileObject(os.path.join(
DIRECTORY, path, file
))
+ fileobject = FileObject(os.path.join(
smart_str(DIRECTORY), smart_str(path), smart_str(file)
))
# FILTER / SEARCH
append = False
# FILTER / SEARCH
append = False