Changeset 13135 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 3 Jul 2015, 10:24:13 (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/document.py
r12444 r13135 233 233 """A file id chooser for :class:`Document` objects. 234 234 235 `context` is a n:class:`Document` instance.235 `context` is a :class:`Document` instance. 236 236 237 237 The delivered file_id contains the file id marker for … … 267 267 *Example:* 268 268 269 For document with id 'd123'270 with attr `` 'nice_image.jpeg'`` this chooser would create:271 272 `` '__file-document__nice_image_d123.jpeg'``269 For document with id ``d123`` and 270 with attr ``nice_image.jpeg`` this chooser would create: 271 272 ``__file-document__nice_image_d123.jpeg`` 273 273 274 274 meaning that the nice image of this document would be -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/export.py
r12410 r13135 46 46 'translated_class_name', 47 47 'connected_files', # Could be used to export file URLs 48 'form_fields_interface', 49 'filenames', 50 'local_roles', 48 51 ] 49 52 ))) + ( -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py
r12408 r13135 26 26 class IDocumentsContainer(IIkobaObject): 27 27 """A container for all kind of document objects. 28 29 28 """ 30 29 … … 36 35 class IDocument(IIkobaObject): 37 36 """A base representation of documents. 38 39 37 """ 40 38 history = Attribute('Object history, a list of messages') 41 state = Attribute('Returns the verification state of a document') 42 translated_state = Attribute( 43 'Returns a translated, more verbose verification state of a document') 39 state = Attribute('Workflow state of a document') 40 translated_state = Attribute('Translatable workflow state of a document') 44 41 class_name = Attribute('Name of the document class') 45 translated_class_name = Attribute('Translatable class name') 46 formatted_transition_date = Attribute('Last transition formatted date string') 42 translated_class_name = Attribute('Translatable class name of a document') 43 formatted_transition_date = Attribute( 44 'Last transition formatted date string') 45 form_fields_interface = Attribute( 46 'Interface which is used in forms for grok.AutoFields') 47 local_roles = Attribute('List of local role names') 47 48 user_id = Attribute('Id of a user') 48 49 connected_files = Attribute('Names of files connected to a document') 49 is_verifiable = Attribute(' Contract verifiable by officer')50 is_verifiable = Attribute('True if contract verifiable by officer') 50 51 51 52 document_id = schema.TextLine( … … 67 68 class IPublicDocument(IDocument): 68 69 """A base representation of public documents. 69 70 70 """ 71 71 … … 83 83 class IPDFDocument(IPublicDocument): 84 84 """A base representation of PDF documents. 85 86 85 """ 87 86 87 filenames = Attribute('Tuple of filenames; only one filename recommended') 88 88 89 89 class IHTMLDocument(IPublicDocument): … … 92 92 """ 93 93 94 html_dict = Attribute('Content as language dictionary with values in HTML format') 94 html_dict = Attribute( 95 'Content as language dictionary with values in HTML format') 95 96 96 97 html_multilingual = schema.Text( … … 101 102 class IRESTDocument(IPublicDocument): 102 103 """A base representation of REST documents. 103 104 104 """ 105 105 … … 115 115 class IDocumentsUtils(Interface): 116 116 """A collection of methods which are subject to customization. 117 118 117 """ 119 118
Note: See TracChangeset for help on using the changeset viewer.