fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into view-refactor
[redakcja.git]
/
apps
/
api
/
handlers
/
library_handlers.py
diff --git
a/apps/api/handlers/library_handlers.py
b/apps/api/handlers/library_handlers.py
index
45dff83
..
18dd3e8
100644
(file)
--- a/
apps/api/handlers/library_handlers.py
+++ b/
apps/api/handlers/library_handlers.py
@@
-35,6
+35,7
@@
class BasicLibraryHandler(AnonymousBaseHandler):
'name': docid } for docid in lib.documents() ]
return {'documents' : document_list}
'name': docid } for docid in lib.documents() ]
return {'documents' : document_list}
+
class LibraryHandler(BaseHandler):
allowed_methods = ('GET', 'POST')
class LibraryHandler(BaseHandler):
allowed_methods = ('GET', 'POST')
@@
-48,7
+49,7
@@
class LibraryHandler(BaseHandler):
'url': reverse('document_view', args=[docid]),
'name': docid } for docid in lib.documents() ]
'url': reverse('document_view', args=[docid]),
'name': docid } for docid in lib.documents() ]
- return {'documents' : document_list }
+ return {'documents' : document_list }
@validate_form(forms.DocumentUploadForm, 'POST')
def create(self, request, form):
@validate_form(forms.DocumentUploadForm, 'POST')
def create(self, request, form):
@@
-137,6
+138,10
@@
class DocumentHandler(BaseHandler):
return result
return result
+ def update(self, request, docid):
+ """Update information about the document, like display not"""
+ return
+
#
# Document Text View
#
#
# Document Text View
#