-
- url(r'^documents/(?P<docid>[^/]+)/text$',
- document_text_resource, {'emitter_format': 'rawxml'},
+
+ url(urlpath(r'documents', DOC, 'gallery', format=False),
+ document_gallery, {'emitter_format': 'json'},
+ name="docgallery_view"),
+
+ # XML
+ url(urlpath(r'documents', DOC, 'text', format=False),
+ document_text_resource, {'emitter_format': 'raw'},