Changeset 13104 for main/waeup.kofa/trunk/docs/source/userdocs/applicants
- Timestamp:
- 26 Jun 2015, 09:04:51 (9 years ago)
- Location:
- main/waeup.kofa/trunk/docs/source/userdocs/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/docs/source/userdocs/applicants/browser.rst
r13101 r13104 38 38 39 39 40 .. _ form_locking:40 .. _application_form_locking: 41 41 42 42 Form Locking 43 43 ============ 44 44 45 We alreadymentioned regular :ref:`page_locking` mechanisms. The45 We mentioned regular :ref:`page_locking` mechanisms. The 46 46 `ApplicantEditFormPage` has two additional locks. One is the same 47 47 named applicant attribute `locked`. Applicants can only enter the … … 135 135 136 136 Batch creation of thousands or even tenthousands of student records 137 is very computation intensive and takes quite a long time, even on137 is very computation intensive and takes quite a long time, even with 138 138 powerful computers. Experience has shown that the portal must be 139 139 disconnected from the Internet in order to avoid database write … … 141 141 the portal. Usually conflict errrors are not serious. Unresolved 142 142 conflicts just lead to an error message and the database remains 143 unchanged. Unfortunataly, student creation does not only a ffectthe143 unchanged. Unfortunataly, student creation does not only alter the 144 144 object database. As we will see below, also folders and files in the 145 145 filesystem are added. These filesystem changes are not being 146 reverted after unresolved conflicts. This may cause serious problems. 146 reverted after unresolved conflicts, a fact which can cause serious 147 problems. 147 148 148 149 So the answer to the question is trivial: We expect that the admin 149 150 user knows what s/he is doing and is careful enough to start the 150 151 creation process in maintenance mode, which means when the portal is 151 set offline.152 disconnected from a public network. 152 153 153 154 … … 162 163 :scale: 50 % 163 164 165 `Applicant.createStudent` 166 ------------------------- 167 168 The `createStudent` method is called for each admitted applicant. 169 The method performs a series of checks before it creates a new 170 student record: 171 172 1. Is the applicant really in the correct state? 173 174 2. Has the registration number not been assigned to another student? 175 176 3. Is a certificate (`course_admitted`) provided? 177 178 4. Can all required student attributes be copied and set? The 179 following attributes are copied: 180 181 .. autoattribute:: waeup.kofa.applicants.applicant.Applicant.applicant_student_mapping 182 :noindex: 183 184 5. Can the application slip can be created? Defective images may 185 cause the adapter method to raise an exception (``IOError``). 186 187 If all these checks are passed, a new student record is created, a 188 password is set, the transitions ``create`` and ``admit`` are fired 189 and all student study course attributes are set. These are the 190 changes which affect the database. 191 192 Furthermore, `createStudent` also produces an application slip pdf 193 file, creates a new folder for the student in the filesystem and 194 copies the pdf file together with the passport jpeg image file into 195 the newly created folder. The copied application slip ensures, that 196 the original application data do not get lost, when the application 197 section is being purged. 198 199 As mentioned above, folder creation and file copying are not being 200 rolled back if the database transactions fails, e.g. due to write 201 conflict errors. Therefore, batch student creation should only be 202 performed if the portal is offline. -
main/waeup.kofa/trunk/docs/source/userdocs/applicants/interfaces.rst
r13099 r13104 100 100 only. These properties are computed dynamically and can't be set. 101 101 102 `IApplicant` 103 ------------ 104 102 105 In the base package `IApplicant` is derived from `IApplicantBaseData` 103 106 and only two methods are added: 104 105 `IApplicant`106 ------------107 107 108 108 .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py
Note: See TracChangeset for help on using the changeset viewer.