Ignore:
Timestamp:
26 Jun 2015, 09:04:51 (9 years ago)
Author:
Henrik Bettermann
Message:

More docs.

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  
    3838
    3939
    40 .. _form_locking:
     40.. _application_form_locking:
    4141
    4242Form Locking
    4343============
    4444
    45 We already mentioned regular :ref:`page_locking` mechanisms. The
     45We mentioned regular :ref:`page_locking` mechanisms. The
    4646`ApplicantEditFormPage` has two additional locks. One is the same
    4747named applicant attribute `locked`. Applicants can only enter the
     
    135135
    136136  Batch creation of thousands or even tenthousands of student records
    137   is very computation intensive and takes quite a long time, even on
     137  is very computation intensive and takes quite a long time, even with
    138138  powerful computers. Experience has shown that the portal must be
    139139  disconnected from the Internet in order to avoid database write
     
    141141  the portal. Usually conflict errrors are not serious. Unresolved
    142142  conflicts just lead to an error message and the database remains
    143   unchanged. Unfortunataly, student creation does not only affect the
     143  unchanged. Unfortunataly, student creation does not only alter the
    144144  object database. As we will see below, also folders and files in the
    145145  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.
    147148
    148149  So the answer to the question is trivial: We expect that the admin
    149150  user knows what s/he is doing and is careful enough to start the
    150151  creation process in maintenance mode, which means when the portal is
    151   set offline.
     152  disconnected from a public network.
    152153
    153154
     
    162163   :scale: 50 %
    163164
     165`Applicant.createStudent`
     166-------------------------
     167
     168The `createStudent` method is called for each admitted applicant.
     169The method performs a series of checks before it creates a new
     170student record:
     171
     1721. Is the applicant really in the correct state?
     173
     1742. Has the registration number not been assigned to another student?
     175
     1763. Is a certificate (`course_admitted`) provided?
     177
     1784. 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
     1845. Can the application slip can be created? Defective images may
     185   cause the adapter method to raise an exception (``IOError``).
     186
     187If all these checks are passed, a new student record is created, a
     188password is set, the transitions ``create`` and ``admit`` are fired
     189and all student study course attributes are set. These are the
     190changes which affect the database.
     191
     192Furthermore, `createStudent` also produces an application slip pdf
     193file, creates a new folder for the student in the filesystem and
     194copies the pdf file together with the passport jpeg image file into
     195the newly created folder. The copied application slip ensures, that
     196the original application data do not get lost, when the application
     197section is being purged.
     198
     199As mentioned above, folder creation and file copying are not being
     200rolled back if the database transactions fails, e.g. due to write
     201conflict errors. Therefore, batch student creation should only be
     202performed if the portal is offline.
  • main/waeup.kofa/trunk/docs/source/userdocs/applicants/interfaces.rst

    r13099 r13104  
    100100only. These properties are computed dynamically and can't be set.
    101101
     102`IApplicant`
     103------------
     104
    102105In the base package `IApplicant` is derived from `IApplicantBaseData`
    103106and only two methods are added:
    104 
    105 `IApplicant`
    106 ------------
    107107
    108108.. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py
Note: See TracChangeset for help on using the changeset viewer.