source: main/waeup.kofa/trunk/docs/source/userdocs/datacenter/export.rst @ 12870

Last change on this file since 12870 was 12870, checked in by Henrik Bettermann, 10 years ago

Restructure the import data section.

File size: 10.9 KB
Line 
1.. _export:
2
3Data Export
4***********
5
6Regular data exporters (1) collect objects from specific containers,
7(2) iterate over the collected objects, (3) extract and mangle
8information from each object, (4) write the information of each object
9into a row of a CSV file and (5) finally provide the file for
10download. The CSV file is neither stored in the database nor archived
11in the filesystem. (3) and (4) means a flattening of the hierarchical
12data structure, i.e. a mapping of objects to flat relational data to
13be stored in a CSV table. The extracted information must not
14necessarily be based only on static attributes of the collected
15object. The data, finally stored in the CSV file, can also be derived
16from parent or child objects, or dynamically computed by the object's
17methods and property attributes. These methods and properties can
18retrieve information from everywhere in the portal's database. In the
19following we list all exporter classes including two attributes and a
20method description. The `fields` attribute contain the column titles
21of the export file. These are not necessarily only attributes of the
22exported objects.
23
24.. note::
25
26The list of exported columns usually underlies heavy customizations.
27In the Kofa base package only very few columns are being exported. In
28some Kofa custom packages tons of data are being gathered from
29applicants and students and the number of columns increase accordingly.
30
31The `title` attribute unveils the name of the exporter under which
32this exporter will be displayed in the user interface. The
33`mangle_value()` method shows how some of fields are being dynamically
34computed.
35
36Regular Exporters
37=================
38
39User Exporter
40-------------
41
42.. autoclass:: waeup.kofa.userscontainer.UserExporter()
43  :noindex:
44
45  .. autoattribute:: waeup.kofa.userscontainer.UserExporter.fields
46  .. autoattribute:: waeup.kofa.userscontainer.UserExporter.title
47  .. automethod:: waeup.kofa.userscontainer.UserExporter.mangle_value()
48
49Faculty Exporter
50----------------
51
52.. autoclass:: waeup.kofa.university.export.FacultyExporter()
53  :noindex:
54
55  .. autoattribute:: waeup.kofa.university.export.FacultyExporter.fields
56  .. autoattribute:: waeup.kofa.university.export.FacultyExporter.title
57  .. automethod:: waeup.kofa.university.export.FacultyExporter.mangle_value()
58
59Department Exporter
60-------------------
61
62.. autoclass:: waeup.kofa.university.export.DepartmentExporter()
63  :noindex:
64
65  .. autoattribute:: waeup.kofa.university.export.DepartmentExporter.fields
66  .. autoattribute:: waeup.kofa.university.export.DepartmentExporter.title
67  .. automethod:: waeup.kofa.university.export.DepartmentExporter.mangle_value()
68
69Course Exporter
70---------------
71
72.. autoclass:: waeup.kofa.university.export.CourseExporter()
73  :noindex:
74
75  .. autoattribute:: waeup.kofa.university.export.CourseExporter.fields
76  .. autoattribute:: waeup.kofa.university.export.CourseExporter.title
77  .. automethod:: waeup.kofa.university.export.CourseExporter.mangle_value()
78
79Certificate Exporter
80--------------------
81
82.. autoclass:: waeup.kofa.university.export.CertificateExporter()
83  :noindex:
84
85  .. autoattribute:: waeup.kofa.university.export.CertificateExporter.fields
86  .. autoattribute:: waeup.kofa.university.export.CertificateExporter.title
87  .. automethod:: waeup.kofa.university.export.CertificateExporter.mangle_value()
88
89Certificate Course Exporter
90---------------------------
91
92.. autoclass:: waeup.kofa.university.export.CertificateCourseExporter()
93  :noindex:
94
95  .. autoattribute:: waeup.kofa.university.export.CertificateCourseExporter.fields
96  .. autoattribute:: waeup.kofa.university.export.CertificateCourseExporter.title
97  .. automethod:: waeup.kofa.university.export.CertificateCourseExporter.mangle_value()
98
99Access Code Batch Exporter
100--------------------------
101
102.. autoclass:: waeup.kofa.accesscodes.export.AccessCodeBatchExporter()
103  :noindex:
104
105  .. autoattribute:: waeup.kofa.accesscodes.export.AccessCodeBatchExporter.fields
106  .. autoattribute:: waeup.kofa.accesscodes.export.AccessCodeBatchExporter.title
107
108Access Code Exporter
109--------------------
110
111.. autoclass:: waeup.kofa.accesscodes.export.AccessCodeExporter()
112  :noindex:
113
114  .. autoattribute:: waeup.kofa.accesscodes.export.AccessCodeExporter.fields
115  .. autoattribute:: waeup.kofa.accesscodes.export.AccessCodeExporter.title
116  .. automethod:: waeup.kofa.accesscodes.export.AccessCodeExporter.mangle_value()
117
118Hostel Exporter
119---------------
120
121.. autoclass:: waeup.kofa.hostels.export.HostelExporter()
122  :noindex:
123
124  .. autoattribute:: waeup.kofa.hostels.export.HostelExporter.fields
125  .. autoattribute:: waeup.kofa.hostels.export.HostelExporter.title
126
127Bed Exporter
128------------
129
130.. autoclass:: waeup.kofa.hostels.export.BedExporter()
131  :noindex:
132
133  .. autoattribute:: waeup.kofa.hostels.export.BedExporter.fields
134  .. autoattribute:: waeup.kofa.hostels.export.BedExporter.title
135
136Application Data Exporters
137==========================
138
139Applicants Container Exporter
140-----------------------------
141
142.. autoclass:: waeup.kofa.applicants.export.ApplicantsContainerExporter()
143  :noindex:
144
145  .. autoattribute:: waeup.kofa.applicants.export.ApplicantsContainerExporter.fields
146  .. autoattribute:: waeup.kofa.applicants.export.ApplicantsContainerExporter.title
147
148Applicant Exporter
149------------------
150
151.. autoclass:: waeup.kofa.applicants.export.ApplicantExporter()
152  :noindex:
153
154  .. autoattribute:: waeup.kofa.applicants.export.ApplicantExporter.fields
155  .. autoattribute:: waeup.kofa.applicants.export.ApplicantExporter.title
156  .. automethod:: waeup.kofa.applicants.export.ApplicantExporter.mangle_value()
157
158Student Data Exporters
159======================
160
161When starting a Student Data Exporter in the Data Center all student
162records will be taken into consideration, no matter what or where a
163student is studying. The exporter can also be started 'locally' at
164various levels in the academic section. Starting one of the exporters
165e.g. at faculty or department level means that only the data of
166students are exported who study in this faculty or department
167respectively. The exporter can also be started at certificate level.
168Then only the data of students, who are studying the named study
169course, will be taken into account. At course level the data of those
170students are being exported who have attended or taken this specific
171course.
172
173Student Data Exporter can be further configured through a
174configuration page. Search parameters like the student's current level,
175 current session and current study mode can be set to filter sets of
176students in order to decrease the size of the export file. The set of
177filter parameters varies and depends on the 'locatation' from where
178the exporter is called. A completely different set of filter
179parameters is provided for courses. In this case the session and level
180can be selected when the course was taken by the student.
181
182Student Exporter
183----------------
184
185.. autoclass:: waeup.kofa.students.export.StudentExporter()
186  :noindex:
187
188  .. autoattribute:: waeup.kofa.students.export.StudentExporter.fields
189  .. autoattribute:: waeup.kofa.students.export.StudentExporter.title
190  .. automethod:: waeup.kofa.students.export.StudentExporter.mangle_value()
191
192Student Study Course Exporter
193-----------------------------
194
195.. autoclass:: waeup.kofa.students.export.StudentStudyCourseExporter()
196  :noindex:
197
198  .. autoattribute:: waeup.kofa.students.export.StudentStudyCourseExporter.fields
199  .. autoattribute:: waeup.kofa.students.export.StudentStudyCourseExporter.title
200  .. automethod:: waeup.kofa.students.export.StudentStudyCourseExporter.mangle_value()
201
202Student Study Level Exporter
203----------------------------
204
205.. autoclass:: waeup.kofa.students.export.StudentStudyLevelExporter()
206  :noindex:
207
208  .. autoattribute:: waeup.kofa.students.export.StudentStudyLevelExporter.fields
209  .. autoattribute:: waeup.kofa.students.export.StudentStudyLevelExporter.title
210  .. automethod:: waeup.kofa.students.export.StudentStudyLevelExporter.mangle_value()
211
212Course Ticket Exporter
213----------------------
214
215.. autoclass:: waeup.kofa.students.export.CourseTicketExporter()
216  :noindex:
217
218  .. autoattribute:: waeup.kofa.students.export.CourseTicketExporter.fields
219  .. autoattribute:: waeup.kofa.students.export.CourseTicketExporter.title
220  .. automethod:: waeup.kofa.students.export.CourseTicketExporter.mangle_value()
221
222Student Payment Exporter
223------------------------
224
225.. autoclass:: waeup.kofa.students.export.StudentPaymentExporter()
226  :noindex:
227
228  .. autoattribute:: waeup.kofa.students.export.StudentPaymentExporter.fields
229  .. autoattribute:: waeup.kofa.students.export.StudentPaymentExporter.title
230  .. automethod:: waeup.kofa.students.export.StudentPaymentExporter.mangle_value()
231
232Bed Ticket Exporter
233-------------------
234
235.. autoclass:: waeup.kofa.students.export.BedTicketExporter()
236  :noindex:
237
238  .. autoattribute:: waeup.kofa.students.export.BedTicketExporter.fields
239  .. autoattribute:: waeup.kofa.students.export.BedTicketExporter.title
240  .. automethod:: waeup.kofa.students.export.BedTicketExporter.mangle_value()
241
242The above exporters refer to a specific content type (object class).
243They export all attributes of these objects and a few additional
244parameters derived from the parent objects. These exporters can be
245used for reimport, or more precisely for backing up and restoring
246data. The following 'special' exporters are made on request of some
247universities to collect and compose student data for analysis and
248postprocessing by the university.
249
250DataForBursary Exporter
251-----------------------
252
253.. autoclass:: waeup.kofa.students.export.DataForBursaryExporter()
254  :noindex:
255
256  .. autoattribute:: waeup.kofa.students.export.DataForBursaryExporter.fields
257  .. autoattribute:: waeup.kofa.students.export.DataForBursaryExporter.title
258  .. automethod:: waeup.kofa.students.export.DataForBursaryExporter.mangle_value()
259
260Student Payments Overview Exporter
261----------------------------------
262
263.. autoclass:: waeup.kofa.students.export.StudentPaymentsOverviewExporter()
264  :noindex:
265
266  .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.fields
267  .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.title
268  .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.curr_year
269  .. automethod:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.mangle_value()
270
271Student Study Levels Overview Exporter
272--------------------------------------
273
274.. autoclass:: waeup.kofa.students.export.StudentStudyLevelsOverviewExporter()
275  :noindex:
276
277  .. autoattribute:: waeup.kofa.students.export.StudentStudyLevelsOverviewExporter.fields
278  .. autoattribute:: waeup.kofa.students.export.StudentStudyLevelsOverviewExporter.title
279  .. automethod:: waeup.kofa.students.export.StudentStudyLevelsOverviewExporter.mangle_value()
280
281Combo Card Data Exporter
282------------------------
283
284.. autoclass:: waeup.kofa.students.export.ComboCardDataExporter()
285  :noindex:
286
287  .. autoattribute:: waeup.kofa.students.export.ComboCardDataExporter.fields
288  .. autoattribute:: waeup.kofa.students.export.ComboCardDataExporter.title
289  .. automethod:: waeup.kofa.students.export.ComboCardDataExporter.mangle_value()
Note: See TracBrowser for help on using the repository browser.