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

More docs.

Location:
main/waeup.kofa/trunk
Files:
6 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
  • main/waeup.kofa/trunk/docs/source/userdocs/browsing.rst

    r13100 r13104  
    112112permissions the user gained. But this is not sufficient. Applicants
    113113and students always have the permission to handle their data
    114 although they are not allowed to edit the data all the time. The
    115 access to forms has to be further restricted. This is always done in
     114although they are not allowed to edit the data all the time.
     115Access to forms has to be further restricted. This is always done in
    116116the `update` method of a page. If an applicant or student doesn't
    117117meet the additional conditions defined in this method, s/he is
  • main/waeup.kofa/trunk/docs/source/userdocs/datacenter/export.rst

    r12971 r13104  
    2727  In the Kofa base package only very few columns are being exported. In
    2828  some Kofa custom packages tons of data are being gathered from
    29   applicants and students and the number of columns increase accordingly.
     29  applicants and students and the number of columns increases
     30  accordingly.
    3031
    3132The `title` attribute unveils the name of the exporter under which
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r13089 r13104  
    449449
    450450    def writeLogMessage(view, comment):
    451         """Adds an INFO message to the log file
     451        """Add an INFO message to the log file.
    452452        """
    453453
    454454    def createStudent():
    455         """Create a student object from applicatnt data
    456         and copy applicant object.
     455        """Create a student object from applicant data and copy
     456        passport image and application slip.
    457457        """
    458458
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/clearanceeditpage.pt

    r11254 r13104  
    2222        </tbody>
    2323      </table>
    24 
     24      <br />
    2525      <div tal:condition="view/availableActions">
    2626        <input tal:repeat="action view/actions"
Note: See TracChangeset for help on using the changeset viewer.