Dirty hack to fix gallery editing on some browsers
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 5 Mar 2010 14:57:33 +0000 (15:57 +0100)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 5 Mar 2010 14:57:33 +0000 (15:57 +0100)
apps/filebrowser/views.py
apps/wiki/views.py
platforma/templates/wiki/document_details.html

index 32f79c2..30869a4 100644 (file)
@@ -63,9 +63,9 @@ def browse(request):
 
     dir_list = os.listdir(abs_path)
     files = []
-    print "LISTING FILES: ", dir_list
+    print "LISTING FILES: ", dir_list
     for file in dir_list:
-        print repr(file)
+        print repr(file)
         # EXCLUDE FILES MATCHING VERSIONS_PREFIX OR ANY OF THE EXCLUDE PATTERNS
         filtered = file.startswith('.')
         for re_prefix in filter_re:
index 4f808f0..685e87e 100644 (file)
@@ -43,5 +43,8 @@ def document_gallery(request, directory):
         images = [u'%s%s%s/%s' % (settings.MEDIA_URL, settings.FILEBROWSER_DIRECTORY, directory, f) for f in os.listdir(base_dir) if os.path.splitext(f)[1].lower() in (u'.jpg', u'.jpeg', u'.png')]
         images.sort()
         return HttpResponse(json.dumps(images))
-    except (IndexError, OSError), e:
+    except (IndexError, OSError), exc:
+        import traceback
+        traceback.print_exc()
+
         raise Http404
index 43e5dfd..1362a80 100644 (file)
             <div class="vsplitbar"> </div>
             <div id="sidebar">
                 <div class="toolbar">
-                    <button class="previous-page">⇽ Poprzednia</button>
+                    <button class="previous-page">Poprzednia</button>
                     <input type="text" size="3" maxlength="3" value="1" class="page-number" />
-                    <button class="next-page">Następna ⇾</button>
+                    <button class="next-page">Następna</button>
                     <button class="zoom-in">Powiększ</button>
                     <button class="zoom-out">Pomniejsz</button>
-                    <button class="change-gallery">Zmień galerię</button>
+                    <button class="change-gallery">Galeria</button>
                     <div class="toolbar-end"> </div>
                 </div>
                 <div class="toolbar" id="change-gallery-toolbar">