[13078] | 1 | .. _applicants_interfaces: |
---|
| 2 | |
---|
[13168] | 3 | Parent Containers Interfaces |
---|
| 4 | ============================ |
---|
[13078] | 5 | |
---|
| 6 | `IApplicantsRoot` |
---|
| 7 | ----------------- |
---|
| 8 | |
---|
| 9 | Much like ``academics`` and ``students``, also ``applicants`` is a |
---|
| 10 | unique container (of type `ApplicantsRoot`) located in the |
---|
| 11 | `IUniversity` instance. It is the counterpart of the students |
---|
| 12 | (section) container. The root container has a `description` schema |
---|
| 13 | field attribute which contains human readable, multi-lingual |
---|
| 14 | information about the application procedure in HTML format. This |
---|
| 15 | description can be seen by anonymous users, when they enter the |
---|
| 16 | applicants section (by pressing the 'Application' tab in the |
---|
| 17 | navigation bar). |
---|
| 18 | |
---|
| 19 | .. _multilingual: |
---|
| 20 | |
---|
| 21 | .. note:: |
---|
| 22 | |
---|
| 23 | A multi-lingual or localized text is a sequence of human-readable |
---|
| 24 | text strings in different languages. The languages must be separated |
---|
| 25 | by ``>>xy<<``, whereas ``xy`` is the language code. Text parts |
---|
| 26 | without correct leading language separator - usually the first part |
---|
| 27 | has no language descriptor - are interpreted as texts in the |
---|
| 28 | portal's language. The text strings can be either HTML or |
---|
| 29 | reStructuredText (REST) formatted. |
---|
| 30 | |
---|
| 31 | .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py |
---|
| 32 | :pyobject: IApplicantsRoot |
---|
| 33 | |
---|
| 34 | `IApplicantsContainer` |
---|
| 35 | ---------------------- |
---|
| 36 | |
---|
| 37 | The applicants root contains the various `ApplicantsContainer` |
---|
[13170] | 38 | objects and is also a configuration object. |
---|
[13078] | 39 | |
---|
| 40 | .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py |
---|
| 41 | :pyobject: IApplicantsContainer |
---|
| 42 | |
---|
| 43 | `statistics` and `expired` are read-only property attributes. |
---|
| 44 | `description_dict` contains the same information as the |
---|
| 45 | `description`, but the sequence of language translations has been |
---|
| 46 | split up and copied into a dictionary for faster processing. In the |
---|
| 47 | base package, `local_roles` is an empty list which means, no local |
---|
| 48 | role can be assigned at applicants container level. |
---|
| 49 | |
---|
| 50 | Crucial for application are the `prefix`, `year`, `mode` and |
---|
| 51 | `application_category` schema fields. The `prefix` atribute can only |
---|
| 52 | be set when adding a container. It cannot be edited afterwards. The |
---|
| 53 | attribute determines the application type and automatically sets the |
---|
| 54 | prefix of the container code and of all applicant ids inside the |
---|
| 55 | container. The prefix is supplied by the `ApplicationTypeSource` |
---|
| 56 | (see `application types of base package |
---|
| 57 | <https://kofa-demo.waeup.org/sources#collapseAppTypes>`_). It is |
---|
| 58 | followed by the year of entry. Thus, the identifiers of applicants |
---|
| 59 | containers and the applicants inside the containers start with the |
---|
| 60 | same prefix-year sequence. Example: ``app2015`` which translates |
---|
| 61 | into 'General Studies 2015/2016'. Consequently, **applicants cannot |
---|
| 62 | be moved from one container to another.** |
---|
| 63 | |
---|
[13099] | 64 | .. _application_mode: |
---|
| 65 | |
---|
[13229] | 66 | The application mode is either ``create`` or ``update``. In **create |
---|
| 67 | mode** the container can be either left empty or it can be |
---|
| 68 | pre-filled with fresh and 'unused' records. In the first case, |
---|
| 69 | records are being created after submission of the first form. In the |
---|
| 70 | second case, unused record are fetched and filled with the form |
---|
| 71 | data. In both 'create mode' cases, applicants are requested to |
---|
| 72 | provide all data needed, including their name details. In **update |
---|
| 73 | mode**, the applicants container must have been pre-filled by import, |
---|
| 74 | e.g. with records provided by an external board. These records are |
---|
| 75 | called 'used' since they already contain data. Applicants can't |
---|
| 76 | create new records in update mode, they can only open and take |
---|
| 77 | possession of existing records. |
---|
[13088] | 78 | |
---|
[13078] | 79 | The application category is supplied by the |
---|
| 80 | `ApplicationCategorySource` (see `application categories of base |
---|
| 81 | package <https://kofa-demo.waeup.org/sources#collapseAppCats>`_) and |
---|
| 82 | refers to a group of study programmes (certificates) which the |
---|
| 83 | applicant can apply for, read also chapter on :ref:`Certificates |
---|
| 84 | <certificate>`. |
---|
| 85 | |
---|
[13168] | 86 | Applicant Interfaces |
---|
| 87 | ==================== |
---|
[13078] | 88 | |
---|
[13082] | 89 | As already mentioned, the applicant objects contains all information |
---|
| 90 | necessary for application, except for the payment ticket data. The |
---|
| 91 | base set of the applicant's 'external behaviour' is described by the |
---|
| 92 | following interface. |
---|
| 93 | |
---|
[13078] | 94 | `IApplicantBaseData` |
---|
| 95 | -------------------- |
---|
| 96 | |
---|
[13082] | 97 | .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py |
---|
| 98 | :pyobject: IApplicantBaseData |
---|
[13078] | 99 | |
---|
[13082] | 100 | As usual, the interface lists attributes first. Except for the |
---|
| 101 | last two attributes (`password` and `application_date`), they are all |
---|
| 102 | read-only property attributes, i.e. attributes with a getter method |
---|
| 103 | only. These properties are computed dynamically and can't be set. |
---|
| 104 | |
---|
[13104] | 105 | `IApplicant` |
---|
| 106 | ------------ |
---|
| 107 | |
---|
[13082] | 108 | In the base package `IApplicant` is derived from `IApplicantBaseData` |
---|
| 109 | and only two methods are added: |
---|
| 110 | |
---|
| 111 | .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py |
---|
| 112 | :pyobject: IApplicant |
---|
| 113 | |
---|
| 114 | In custom packages we have furthermore interfaces for undergraduate |
---|
| 115 | and postgraduate students, both derived from `IApplicantBaseData`. |
---|
| 116 | |
---|
| 117 | Then there is a customized interface `ISpecialApplicant` for former |
---|
| 118 | students or students who are not users of the portal but have to pay |
---|
| 119 | supplementary fees. This reduced interface is used in browser |
---|
| 120 | components only, it does not instantiate applicant objects. |
---|
| 121 | |
---|
[13168] | 122 | Applicant Payment Interfaces |
---|
| 123 | ============================ |
---|
[13082] | 124 | |
---|
| 125 | `IApplicantOnlinePayment` |
---|
| 126 | ------------------------- |
---|
| 127 | |
---|
| 128 | Instances of this interface are called applicant payment tickets. |
---|
| 129 | They contain the data which confirm that the applicant has paid the |
---|
| 130 | application fee. |
---|
| 131 | `waeup.kofa.students.interfaces.IStudentOnlinePayment` inherits from |
---|
| 132 | `waeup.kofa.payments.interfaces.IOnlinePayment` and promises three |
---|
| 133 | additional methods which process the applicant data after successful |
---|
| 134 | or approved payment. |
---|
| 135 | |
---|
| 136 | .. literalinclude:: ../../../../src/waeup/kofa/applicants/interfaces.py |
---|
| 137 | :pyobject: IApplicantOnlinePayment |
---|