Changeset 13146 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 7 Jul 2015, 05:43:23 (9 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/batching.py
r12410 r13146 43 43 44 44 class DocumentProcessorBase(BatchProcessor): 45 """A base for batch processors for IDocument objects. 45 """This is the base class for all kinds of document processors. 46 The `checkConversion` method checks whether `class_name` in a row 47 corresponds with the processor chosen. This is to avoid accidentally 48 wrong imports. 49 50 Document processors do not import workflow states or transitions which 51 means, all imported documents will be unpublished after batch creation. 52 In other words, publishing can't be done by import, it has do be done 53 via the UI. 46 54 """ 47 55 grok.implements(IBatchProcessor) -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/htmldocumentpage.pt
r12242 r13146 35 35 </td> 36 36 <td> 37 <a href=" 38 <span tal:replace="python: view.url(context, 'display')"></span>39 "><span tal:replace="context/title">FILENAME</span></a>37 <a href="<span tal:replace="python: view.url(context, 'display')"></span>"><span tal:replace="context/title"> 38 FILENAME 39 </span></a> 40 40 </td> 41 41 </tr> -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/export.py
r13135 r13146 29 29 30 30 class DocumentExporterBase(grok.GlobalUtility, ExporterBase): 31 """Exporter for documents. 31 """This is the exporter base class for all kinds of document exporters. 32 Derived classes export all documents of type `class_name` inside the 33 documents container. 34 35 All schema fields and the property attributes 36 `history`, `state`, `class_name` and `users_with_local_roles` 37 are being exported. 32 38 """ 33 39 grok.implements(ICSVExporter) … … 54 60 55 61 def mangle_value(self, value, name, context=None): 56 """Hook for mangling values in derived classes 62 """The mangler prepares the history messages and computes the 63 `users_with_local_roles` value which is a Python expression like: 64 65 ``[{'user_name': u'bob', 'local_role': u'bobsrole'}, 66 {'user_name': u'anna', 'local_role': u'annasrole'}]`` 57 67 """ 58 68 if name == 'users_with_local_roles':
Note: See TracChangeset for help on using the changeset viewer.