Ignore:
Timestamp:
7 Jul 2015, 05:43:23 (9 years ago)
Author:
Henrik Bettermann
Message:

Prepare some docstrings for Sphinx docu.

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  
    4343
    4444class 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.
    4654    """
    4755    grok.implements(IBatchProcessor)
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/htmldocumentpage.pt

    r12242 r13146  
    3535      </td>
    3636      <td>
    37         &lt;a href=&quot;
    38         <span tal:replace="python: view.url(context, 'display')"></span>
    39         &quot;&gt;<span tal:replace="context/title">FILENAME</span>&lt;/a&gt;
     37        &lt;a href=&quot;<span tal:replace="python: view.url(context, 'display')"></span>&quot;&gt;<span tal:replace="context/title">
     38        FILENAME
     39        </span>&lt;/a&gt;
    4040      </td>
    4141    </tr>
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/export.py

    r13135 r13146  
    2929
    3030class 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.
    3238    """
    3339    grok.implements(ICSVExporter)
     
    5460
    5561    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'}]``
    5767        """
    5868        if name == 'users_with_local_roles':
Note: See TracChangeset for help on using the changeset viewer.