Changeset 13144 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 7 Jul 2015, 05:21:14 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/documents/batching.py
r13138 r13144 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. 46 49 """ 47 50 grok.implements(IBatchProcessor) -
main/waeup.kofa/trunk/src/waeup/kofa/documents/browser.py
r13138 r13144 36 36 from waeup.kofa.interfaces import MessageFactory as _ 37 37 from waeup.kofa.interfaces import ( 38 IContactForm, IKofaObject, IKofaUtils )38 IContactForm, IKofaObject, IKofaUtils, DOCLINK) 39 39 from waeup.kofa.browser.layout import ( 40 40 KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, … … 82 82 pnav = 2 83 83 label = _('Documents') 84 doclink = DOCLINK + '/documents.html' 84 85 85 86 … … 164 165 grok.template('documentpage') 165 166 pnav = 2 167 doclink = DOCLINK + '/documents.html' 166 168 167 169 @property -
main/waeup.kofa/trunk/src/waeup/kofa/documents/browser_templates/htmldocumentpage.pt
r12437 r13144 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.kofa/trunk/src/waeup/kofa/documents/export.py
r13134 r13144 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) … … 51 57 52 58 def mangle_value(self, value, name, context=None): 53 """Hook for mangling values in derived classes 59 """The mangler prepares the history messages and computes the 60 `users_with_local_roles` value which is a Python expression like: 61 62 ``[{'user_name': u'bob', 'local_role': u'bobsrole'}, 63 {'user_name': u'anna', 'local_role': u'annasrole'}]`` 54 64 """ 55 65 if name == 'users_with_local_roles': -
main/waeup.kofa/trunk/src/waeup/kofa/documents/interfaces.py
r13134 r13144 38 38 history = Attribute('Object history, a list of messages') 39 39 state = Attribute('Workflow state of a document') 40 class_name = Attribute('Name of the document class') 41 42 local_roles = Attribute('List of local role names') 43 translated_class_name = Attribute('Translatable class name of a document') 40 44 translated_state = Attribute('Translatable workflow state of a document') 41 class_name = Attribute('Name of the document class')42 translated_class_name = Attribute('Translatable class name of a document')43 45 formatted_transition_date = Attribute( 44 46 'Last transition formatted date string') 45 47 form_fields_interface = Attribute( 46 48 'Interface which is used in forms for grok.AutoFields') 47 local_roles = Attribute('List of local role names')48 49 49 50 document_id = schema.TextLine( -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r12971 r13144 315 315 316 316 class CourseTicketExporter(grok.GlobalUtility, StudentExporterBase): 317 """The Course Ticket 317 """The Course Ticket Exporter exports course tickets. Usually, 318 318 the exporter first filters the set of students by searching the 319 319 students catalog. Then it collects and iterates over all ``studylevel`` -
main/waeup.kofa/trunk/src/waeup/kofa/university/export.py
r12869 r13144 37 37 38 38 def mangle_value(self, value, name, context=None): 39 """The mangler computes the users_with_local_rolesvalue which39 """The mangler computes the `users_with_local_roles` value which 40 40 is a Python expression like: 41 41
Note: See TracChangeset for help on using the changeset viewer.