X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0b7e02cf796af7d3028efabeb37473f9198d0af2..96bc5f73483f3e907eebd60df638a9de0a9124f3:/apps/api/resources.py diff --git a/apps/api/resources.py b/apps/api/resources.py index 7681436b..fbdb89b8 100644 --- a/apps/api/resources.py +++ b/apps/api/resources.py @@ -7,9 +7,6 @@ __doc__ = "Module documentation." from piston.resource import Resource from api.utils import DjangoAuth - - - authdata = {'authentication': DjangoAuth()} # @@ -17,11 +14,21 @@ authdata = {'authentication': DjangoAuth()} # import api.handlers.library_handlers as dh +from api.handlers.text_handler import DocumentTextHandler + library_resource = Resource(dh.LibraryHandler, **authdata) document_resource = Resource(dh.DocumentHandler, **authdata) -document_text_resource = Resource(dh.DocumentTextHandler, **authdata) -document_dc_resource = Resource(dh.DocumentDublinCoreHandler, **authdata) +document_text_resource = Resource(DocumentTextHandler, **authdata) +document_html_resource = Resource(dh.DocumentHTMLHandler, **authdata) +# document_dc_resource = Resource(dh.DocumentDublinCoreHandler, **authdata) +document_gallery = Resource(dh.DocumentGalleryHandler, **authdata) document_merge = Resource(dh.MergeHandler, **authdata) +diff_resource = Resource(dh.DiffHandler, **authdata) + +import api.handlers.manage_handlers as mh + +pullrequest_collection = Resource(mh.PullRequestListHandler, **authdata) +pullrequest_rsrc = Resource(mh.PullRequestHandler, **authdata) # # Toolbar resources @@ -30,12 +37,19 @@ import api.handlers.toolbar_handlers as th toolbar_buttons = Resource(th.ToolbarHandler, **authdata) scriptlets = Resource(th.ScriptletsHandler, **authdata) + + __all__ = [ 'library_resource', 'document_resource', 'document_text_resource', - 'document_dc_resource', + 'document_html_resource', +# 'document_dc_resource', + 'document_gallery', 'document_merge', 'toolbar_buttons', - 'scriptlets' + 'scriptlets', + 'pullrequest_collection', + 'pullrequest_rsrc', + 'diff_resource', ] \ No newline at end of file