Changeset 13124 for main/waeup.kofa/trunk/docs/source
- Timestamp:
- 1 Jul 2015, 16:24:58 (9 years ago)
- Location:
- main/waeup.kofa/trunk/docs/source/userdocs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/docs/source/userdocs/browsing.rst
r13118 r13124 57 57 58 58 59 .. _ manage_edit_pages:59 .. _views_pages: 60 60 61 61 Views, Pages and Form Pages -
main/waeup.kofa/trunk/docs/source/userdocs/customization.rst
r13121 r13124 49 49 localization. Translation is done via ``po`` text files which are 50 50 located in the ``locales`` folder of a package. Each language has 51 its own subfolder. Localized English Kofa terms, for in tance, can be51 its own subfolder. Localized English Kofa terms, for instance, can be 52 52 found in ``locales/en/LC_MESSAGES/waeup.kofa.po``. A single 53 53 entry/message consists of two lines. … … 71 71 =============== 72 72 73 Adding further schema field attributes to content components can be 74 done by inheriting Zope interfaces from the base package and adding 75 new schema fields to these custom interfaces, see :ref:`note 76 <kofa_interfaces>`. This sounds simple, but it isn't. There are many 77 things to think about, when customizing interfaces: 78 79 1. A customized interface alone doesn't have any effect, beause the 80 content classes still implement the original interfaces. Thus, also 81 all content classes, which are supposed to implement the extended 82 interfaces, must be customized, and must be registered instead of 83 the orginal classes which they inherit from. Drawback is, that this 84 must be done before the first start-up of the portal. Otherwise, 85 instances of the original content classes might have been created 86 which cannot be changed afterwards. 87 88 2. Also the forms which are being auto-generated by 89 `grok.AutoFields` (see :ref:`views_pages`), must be customized and 90 use the new and extended interfaces. Otherwise added fields won't 91 appear on form pages. 92 93 3. The same holds for exporters and importers. They also consider 94 the fields from interfaces when processing the data. If we forget to 95 customize exporter or batch processor classes, only the fields from 96 the original interfaces will be exported or reimported. 97 98 73 99 Zope Utilities 74 100 ============== 75 101 76 Zope utilities are dedicated to customization by overriding their methods in custom packages. 102 Kofa's global utilities are perfectly suited for customization. 103 Their attributes and methods can be easily overridden in custom 104 packages. 77 105 78 106 Kofa Utils 79 107 ---------- 80 108 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. 115 116 Customizable utility methods are: 117 118 .. automethod:: waeup.kofa.utils.utils.KofaUtils.sendContactForm() 119 :noindex: 120 121 .. automethod:: waeup.kofa.utils.utils.KofaUtils.fullname() 122 :noindex: 123 124 .. automethod:: waeup.kofa.utils.utils.KofaUtils.genPassword() 125 :noindex: 126 127 .. automethod:: waeup.kofa.utils.utils.KofaUtils.sendCredentials() 128 :noindex: 129 130 .. automethod:: waeup.kofa.utils.utils.KofaUtils.getPaymentItem() 131 :noindex: 132 81 133 Students Utils 82 134 -------------- 135 136 Customizable utility methods are: 137 138 .. automethod:: waeup.kofa.students.utils.StudentsUtils.getReturningData() 139 :noindex: 140 141 .. automethod:: waeup.kofa.students.utils.StudentsUtils.setReturningData() 142 :noindex: 143 144 .. automethod:: waeup.kofa.students.utils.StudentsUtils.setPaymentDetails() 145 :noindex: 146 147 .. automethod:: waeup.kofa.students.utils.StudentsUtils.setBalanceDetails() 148 :noindex: 149 150 .. automethod:: waeup.kofa.students.utils.StudentsUtils.increaseMatricInteger() 151 :noindex: 152 153 .. automethod:: waeup.kofa.students.utils.StudentsUtils.constructMatricNumber() 154 :noindex: 155 156 .. automethod:: waeup.kofa.students.utils.StudentsUtils.setMatricNumber() 157 :noindex: 158 159 .. automethod:: waeup.kofa.students.utils.StudentsUtils.getAccommodationDetails() 160 :noindex: 161 162 .. automethod:: waeup.kofa.students.utils.StudentsUtils.selectBed() 163 :noindex: 164 165 .. automethod:: waeup.kofa.students.utils.StudentsUtils.renderPDFAdmissionLetter() 166 :noindex: 167 168 .. automethod:: waeup.kofa.students.utils.StudentsUtils.getPDFCreator() 169 :noindex: 170 171 .. automethod:: waeup.kofa.students.utils.StudentsUtils.renderPDF() 172 :noindex: 173 174 .. automethod:: waeup.kofa.students.utils.StudentsUtils.renderPDFTranscript() 175 :noindex: 176 177 .. automethod:: waeup.kofa.students.utils.StudentsUtils.maxCredits() 178 :noindex: 179 180 .. automethod:: waeup.kofa.students.utils.StudentsUtils.getBedCoordinates() 181 :noindex: 182 183 184 83 185 84 186 Applicants Utils
Note: See TracChangeset for help on using the changeset viewer.