From: Ɓukasz Rekucki Date: Fri, 2 Oct 2009 09:13:22 +0000 (+0200) Subject: Another quick fix. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/4daa3475da9a4d4de4488ec742c77248641e8c1e?ds=inline;hp=-c Another quick fix. --- 4daa3475da9a4d4de4488ec742c77248641e8c1e diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 9d50d023..84881cee 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -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)) diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 23b70592..4e1c8938 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -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, diff --git a/project/static/js/models.js b/project/static/js/models.js index e3fb0ce6..65b9d67b 100644 --- a/project/static/js/models.js +++ b/project/static/js/models.js @@ -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() {