1 # -*- encoding: utf-8 -*-
3 __author__= "Łukasz Rekucki"
4 __date__ = "$2009-09-25 15:53:00$"
5 __doc__ = "Module documentation."
7 from piston.resource import Resource
8 from api.utils import DjangoAuth
10 authdata = {'authentication': DjangoAuth()}
16 import api.handlers.library_handlers as dh
17 library_resource = Resource(dh.LibraryHandler, **authdata)
18 document_resource = Resource(dh.DocumentHandler, **authdata)
19 document_text_resource = Resource(dh.DocumentTextHandler, **authdata)
20 document_html_resource = Resource(dh.DocumentHTMLHandler, **authdata)
21 document_dc_resource = Resource(dh.DocumentDublinCoreHandler, **authdata)
22 document_gallery = Resource(dh.DocumentGalleryHandler, **authdata)
23 document_merge = Resource(dh.MergeHandler, **authdata)
25 import api.handlers.manage_handlers as mh
27 pullrequest_collection = Resource(mh.PullRequestListHandler, **authdata)
28 pullrequest_rsrc = Resource(mh.PullRequestHandler, **authdata)
33 import api.handlers.toolbar_handlers as th
34 toolbar_buttons = Resource(th.ToolbarHandler, **authdata)
35 scriptlets = Resource(th.ScriptletsHandler, **authdata)
42 'document_text_resource',
43 'document_html_resource',
44 'document_dc_resource',
49 'pullrequest_collection',