Ignore:
Timestamp:
1 Jul 2015, 21:01:34 (9 years ago)
Author:
Henrik Bettermann
Message:

More docs.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/docs/source/userdocs/customization.rst

    r13124 r13132  
    108108
    109109The central `KofaUtils` utility contains not only most dictionaries
    110 used for sources (see
    111 :py:class:`API <waeup.kofa.utils.utils.KofaUtils>`) but also attributes
    112 like `PORTAL_LANGUAGE` and `tzinfo`. The first defines the default
    113 language, which is used for pdf slips. The second defines the time
    114 zone where the institution is located.
     110used for sources (see :py:class:`API
     111<waeup.kofa.utils.utils.KofaUtils>`) but also configuration
     112attributes like
     113
     114.. autoattribute:: waeup.kofa.utils.utils.KofaUtils.PORTAL_LANGUAGE
     115   :noindex:
     116
     117.. autoattribute:: waeup.kofa.utils.utils.KofaUtils.tzinfo
     118   :noindex:
     119
     120.. autoattribute:: waeup.kofa.utils.utils.KofaUtils.SYSTEM_MAX_LOAD
     121   :noindex:
    115122
    116123Customizable utility methods are:
     
    134141--------------
    135142
     143`StudentsUtils` contains the following configuration attributes:
     144
     145.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.STUDENT_ID_PREFIX
     146   :noindex:
     147
     148.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.SKIP_UPLOAD_VIEWLETS
     149   :noindex:
     150
     151.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.PORTRAIT_CHANGE_STATES
     152   :noindex:
     153
     154.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.SEPARATORS_DICT
     155   :noindex:
     156
     157.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.STUDENT_EXPORTER_NAMES
     158   :noindex:
     159
     160.. autoattribute:: waeup.kofa.students.utils.StudentsUtils.STUDENT_BACKUP_EXPORTER_NAMES
     161   :noindex:
     162
    136163Customizable utility methods are:
    137164
     
    180207.. automethod:: waeup.kofa.students.utils.StudentsUtils.getBedCoordinates()
    181208   :noindex:
    182 
    183 
    184209
    185210
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13129 r13132  
    912912
    913913    def getBedCoordinates(self, bedticket):
    914         """Return bed coordinates.
     914        """Return descriptive bed coordinates.
    915915        This method can be used to customize the `display_coordinates`
    916         property method.
     916        property method in order to  display a
     917        customary description of the bed space.
    917918        """
    918919        return bedticket.bed_coordinates
     
    928929        return None
    929930
     931    #: A dictionary which maps widget names to headlines. The headline
     932    #: is rendered in forms and on pdf slips above the respective
     933    #: display or input widget. There are no separating headlines
     934    #: in the base package.
    930935    SEPARATORS_DICT = {}
    931936
     937    #: A tuple containing names of file upload viewlets which are not shown
     938    #: on the `StudentClearanceManageFormPage`. Nothing is being skipped
     939    #: in the base package. This attribute makes only sense, if intermediate
     940    #: custom packages are being used, like we do for all Nigerian portals.
    932941    SKIP_UPLOAD_VIEWLETS = ()
    933942
     943    #: A tuple containing the names of registration states in which changing of
     944    #: passport pictures is allowed.
    934945    PORTRAIT_CHANGE_STATES = (ADMITTED,)
    935946
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r13125 r13132  
    8282    """
    8383    grok.implements(IKofaUtils)
    84     # This the only place where we define the portal language
    85     # which is used for the translation of system messages
    86     # (e.g. object histories).
     84
     85    #: This the only place where we define the portal language
     86    #: which is used for the translation of system messages
     87    #: (e.g. object histories) pdf slips.
    8788    PORTAL_LANGUAGE = 'en'
    8889
     
    209210    #: Set positive number for allowed max, negative for required min
    210211    #: avail.
    211     #:
    212212    #: Use integer for bytes value, float for percent
    213213    #: value. `cpu-load`, of course, accepts float values only.
Note: See TracChangeset for help on using the changeset viewer.