Changeset 13132
- Timestamp:
- 1 Jul 2015, 21:01:34 (9 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/docs/source/userdocs/customization.rst
r13124 r13132 108 108 109 109 The 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. 110 used for sources (see :py:class:`API 111 <waeup.kofa.utils.utils.KofaUtils>`) but also configuration 112 attributes 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: 115 122 116 123 Customizable utility methods are: … … 134 141 -------------- 135 142 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 136 163 Customizable utility methods are: 137 164 … … 180 207 .. automethod:: waeup.kofa.students.utils.StudentsUtils.getBedCoordinates() 181 208 :noindex: 182 183 184 209 185 210 -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13129 r13132 912 912 913 913 def getBedCoordinates(self, bedticket): 914 """Return bed coordinates.914 """Return descriptive bed coordinates. 915 915 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. 917 918 """ 918 919 return bedticket.bed_coordinates … … 928 929 return None 929 930 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. 930 935 SEPARATORS_DICT = {} 931 936 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. 932 941 SKIP_UPLOAD_VIEWLETS = () 933 942 943 #: A tuple containing the names of registration states in which changing of 944 #: passport pictures is allowed. 934 945 PORTRAIT_CHANGE_STATES = (ADMITTED,) 935 946 -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r13125 r13132 82 82 """ 83 83 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. 87 88 PORTAL_LANGUAGE = 'en' 88 89 … … 209 210 #: Set positive number for allowed max, negative for required min 210 211 #: avail. 211 #:212 212 #: Use integer for bytes value, float for percent 213 213 #: value. `cpu-load`, of course, accepts float values only.
Note: See TracChangeset for help on using the changeset viewer.