Another quick fix.
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 2 Oct 2009 09:13:22 +0000 (11:13 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 2 Oct 2009 09:13:22 +0000 (11:13 +0200)
apps/api/handlers/library_handlers.py
apps/explorer/views.py
project/static/js/models.js

index 9d50d02..84881ce 100644 (file)
@@ -238,7 +238,6 @@ class DocumentHTMLHandler(BaseHandler):
 #
 # Image Gallery
 #
-from django.core.files.storage import FileSystemStorage
 
 class DocumentGalleryHandler(BaseHandler):
     allowed_methods = ('GET')
@@ -256,7 +255,7 @@ class DocumentGalleryHandler(BaseHandler):
 
             gallery = {'name': assoc.name, 'pages': []}
             
-            for file in sorted(os.listdir(dirpath), key=natural_order()):
+            for file in sorted(os.listdir(dirpath)):
                 log.info(file)
                 name, ext = os.path.splitext(os.path.basename(file))
 
index 23b7059..4e1c893 100644 (file)
@@ -65,7 +65,7 @@ def file_list(request, repo):
 
     # short-circut the api document list
     doctree = library_resource.handler.read(request)
-    print "DOCTREE:", doctree['documents']
+    print "DOCTREE:", doctree['documents']
         
     return direct_to_template(request, 'explorer/file_list.html', extra_context={
         'filetree': doctree['documents'], 'bookform': bookform,
index e3fb0ce..65b9d67 100644 (file)
@@ -1,5 +1,5 @@
 /*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
-var documentsUrl = '/platforma/api/documents/';
+var documentsUrl = '/api/documents/';
 
 
 Editor.Model = Editor.Object.extend({
@@ -10,7 +10,7 @@ Editor.Model = Editor.Object.extend({
 
 Editor.ToolbarButtonsModel = Editor.Model.extend({
   _className: 'Editor.ToolbarButtonsModel',
-  serverURL: '/platforma/api/toolbar/buttons',
+  serverURL: '/api/toolbar/buttons',
   buttons: {},
   
   init: function() {