#
# Image Gallery
#
-from django.core.files.storage import FileSystemStorage
class DocumentGalleryHandler(BaseHandler):
allowed_methods = ('GET')
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))
# 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,
/*globals Editor fileId SplitView PanelContainerView EditorView FlashView messageCenter*/
-var documentsUrl = '/platforma/api/documents/';
+var documentsUrl = '/api/documents/';
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() {