source: main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py @ 13936

Last change on this file since 13936 was 13871, checked in by Henrik Bettermann, 8 years ago

Make some adjustments to payment exporters and importers: Do not allow to import display_item, use IPayer adapter, fix docstring and more.

  • Property svn:keywords set to Id
File size: 25.8 KB
Line 
1## $Id: interfaces.py 13871 2016-05-31 17:57:03Z henrik $
2##
3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18#from datetime import datetime
19from zope.component import getUtility
20from zope.interface import Attribute, Interface
21from zope import schema
22from zc.sourcefactory.contextual import BasicContextualSourceFactory
23from waeup.kofa.browser.interfaces import IStudentNavigationBase
24from waeup.kofa.interfaces import (
25    IKofaObject, academic_sessions_vocab, validate_email, ICSVExporter,
26    ContextualDictSourceFactoryBase, IKofaUtils)
27from waeup.kofa.interfaces import MessageFactory as _
28from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber
29from waeup.kofa.students.vocabularies import (
30    StudyLevelSource, contextual_reg_num_source, contextual_mat_num_source,
31    GenderSource, nats_vocab
32    )
33from waeup.kofa.payments.interfaces import (
34    IPaymentsContainer, IOnlinePayment)
35from waeup.kofa.university.vocabularies import (
36    CourseSource, StudyModeSource, CertificateSource, SemesterSource,
37    )
38
39class PreviousPaymentCategorySource(ContextualDictSourceFactoryBase):
40    """A source that delivers all selectable categories of previous session
41    payments.
42    """
43    #: name of dict to deliver from kofa utils.
44    DICT_NAME = 'PREVIOUS_PAYMENT_CATEGORIES'
45
46class BalancePaymentCategorySource(ContextualDictSourceFactoryBase):
47    """A source that delivers all selectable items of balance payments.
48    """
49    #: name of dict to deliver from kofa utils.
50    DICT_NAME = 'BALANCE_PAYMENT_CATEGORIES'
51
52# VerdictSource can't be placed into the vocabularies module because it
53# requires importing IStudentsUtils which then leads to circular imports.
54class VerdictSource(BasicContextualSourceFactory):
55    """A verdicts source delivers all verdicts provided
56    in the portal.
57    """
58    def getValues(self, context):
59        verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT
60        return sorted(verdicts_dict.keys())
61
62    def getToken(self, context, value):
63        return value
64
65    def getTitle(self, context, value):
66        verdicts_dict = getUtility(IKofaUtils).VERDICTS_DICT
67        if value != '0':
68            return verdicts_dict[value] + ' (%s)' % value
69        return verdicts_dict[value]
70
71
72class IStudentsUtils(Interface):
73    """A collection of methods which are subject to customization.
74    """
75    def setReturningData(student):
76        """ This method defines what happens after school fee payment
77        depending on the student's senate verdict.
78
79        In the base configuration current level is always increased
80        by 100 no matter which verdict has been assigned.
81        """
82
83    def setPaymentDetails(category, student, previous_session=None,
84            previous_level=None,):
85        """Create Payment object and set the payment data of a student for
86        the payment category specified.
87        """
88
89    def increaseMatricInteger(student):
90        """Increase counter for matric numbers.
91
92        This counter can be a centrally stored attribute or an attribute of
93        faculties, departments or certificates. In the base package the counter
94        is as an attribute of the site configuration object.
95        """
96
97    def constructMatricNumber(student):
98        """Fetch the matric number counter which fits the student and
99        construct the new matric number of the student.
100
101        In the base package the counter is returned which is as an attribute
102        of the site configuration object.
103        """
104
105    def setMatricNumber(student):
106        """Set matriculation number of student.
107
108        If the student's matric number is unset a new matric number is
109        constructed according to the matriculation number construction rules
110        defined in the constructMatricNumber method. The new matric number is
111        set, the students catalog updated. The corresponding matric number
112        counter is increased by one.
113
114        This method is tested but not used in the base package. It can
115        be used in custom packages by adding respective views
116        and by customizing increaseMatricInteger and constructMatricNumber
117        according to the university's matriculation number construction rules.
118
119        The method can be disabled by setting the counter to zero.
120        """
121
122    def getAccommodation_details(student):
123        """Determine the accommodation dates of a student.
124        """
125
126    def selectBed(available_beds):
127        """Select a bed from a list of available beds.
128        In the standard configuration we select the first bed found,
129        but can also randomize the selection if we like.
130        """
131
132    def getPDFCreator(context):
133        """Get some IPDFCreator instance suitable for use with `context`.
134        """
135
136    def renderPDF(view, subject='', filename='slip.pdf',):
137        """Render pdf slips for various pages.
138        """
139
140class IStudentsContainer(IKofaObject):
141    """A students container contains university students.
142    """
143    def addStudent(student):
144        """Add an IStudent object and subcontainers.
145        """
146
147    unique_student_id = Attribute('A unique student id')
148
149class IStudentNavigation(IStudentNavigationBase):
150    """Interface needed for navigation and logging. This interface is
151    implemented by all content classes in the students section.
152    """
153    student = Attribute('Student object of context')
154
155    def writeLogMessage(view, message):
156        """Add an INFO message to students.log.
157        """
158
159class IStudentBase(IKofaObject):
160    """Representation of student base data.
161    """
162    history = Attribute('Object history, a list of messages')
163    state = Attribute('Registration state')
164    translated_state = Attribute('Real name of the registration state')
165    certcode = Attribute('Certificate code of any chosen study course')
166    depcode = Attribute('Department code of any chosen study course')
167    faccode = Attribute('Faculty code of any chosen study course')
168    entry_session = Attribute('Entry session')
169    current_session = Attribute('Current session')
170    current_level = Attribute('Current level')
171    current_mode = Attribute('Current mode')
172    current_verdict = Attribute('Current verdict')
173    fullname = Attribute('All name parts separated by hyphens')
174    display_fullname = Attribute('Fullname as displayed on pages')
175    is_postgrad = Attribute('True if postgraduate student')
176    is_special_postgrad = Attribute('True if special postgraduate student')
177    is_fresh = Attribute('True if fresh student')
178    before_payment = Attribute('True if no previous payment has to be made')
179    personal_data_expired = Attribute('True if personal data expired')
180    transcript_enabled = Attribute('True if transcript processing is enabled')
181    clearance_locked = Attribute('True if clearance form is locked')
182
183    password = Attribute('Encrypted password')
184    temp_password = Attribute('Dictionary with user name, timestamp and encrypted password')
185
186    suspended = schema.Bool(
187        title = _(u'Account suspended'),
188        default = False,
189        required = False,
190        )
191
192    suspended_comment = schema.Text(
193        title = _(u"Reasons for Deactivation"),
194        required = False,
195        description = _(
196            u'This message will be shown if and only if deactivated '
197            'students try to login.'),
198        )
199
200    flash_notice = schema.TextLine(
201        title = _(u'Flash Notice'),
202        required = False,
203        readonly = False,
204        description = _(
205            u'This single-line message will be shown in a flash box.'),
206        )
207
208    student_id = schema.TextLine(
209        title = _(u'Student Id'),
210        required = False,
211        )
212
213    firstname = schema.TextLine(
214        title = _(u'First Name'),
215        required = True,
216        )
217
218    middlename = schema.TextLine(
219        title = _(u'Middle Name'),
220        required = False,
221        )
222
223    lastname = schema.TextLine(
224        title = _(u'Last Name (Surname)'),
225        required = True,
226        )
227
228    sex = schema.Choice(
229        title = _(u'Sex'),
230        source = GenderSource(),
231        required = True,
232        )
233
234    reg_number = TextLineChoice(
235        title = _(u'Registration Number'),
236        required = True,
237        readonly = False,
238        source = contextual_reg_num_source,
239        )
240
241    matric_number = TextLineChoice(
242        title = _(u'Matriculation Number'),
243        required = False,
244        readonly = False,
245        source = contextual_mat_num_source,
246        )
247
248    adm_code = schema.TextLine(
249        title = _(u'PWD Activation Code'),
250        required = False,
251        readonly = False,
252        )
253
254    email = schema.ASCIILine(
255        title = _(u'Email'),
256        required = False,
257        constraint=validate_email,
258        )
259    phone = PhoneNumber(
260        title = _(u'Phone'),
261        required = False,
262        )
263
264    def setTempPassword(user, password):
265        """Set a temporary password (LDAP-compatible) SSHA encoded for
266        officers.
267        """
268
269    def getTempPassword():
270        """Check if a temporary password has been set and if it
271        is not expired. Return the temporary password if valid,
272        None otherwise. Unset the temporary password if expired.
273        """
274
275    def transfer(certificate, current_session,
276        current_level, current_verdict):
277        """ Creates a new studycourse and backups the old one.
278        """
279
280    def revert_transfer():
281        """ Revert previous transfer.
282        """
283
284class IUGStudentClearance(IKofaObject):
285    """Representation of undergraduate student clearance data.
286    """
287    officer_comment = schema.Text(
288        title = _(u"Officer's Comment"),
289        required = False,
290        )
291
292    clr_code = schema.TextLine(
293        title = _(u'CLR Activation Code'),
294        required = False,
295        readonly = False,
296        )
297
298    date_of_birth = FormattedDate(
299        title = _(u'Date of Birth'),
300        required = True,
301        show_year = True,
302        )
303
304    nationality = schema.Choice(
305        vocabulary = nats_vocab,
306        title = _(u'Nationality'),
307        required = False,
308        )
309
310class IPGStudentClearance(IUGStudentClearance):
311    """Representation of postgraduate student clearance data.
312    """
313    employer = schema.TextLine(
314        title = _(u'Employer'),
315        required = False,
316        readonly = False,
317        )
318
319class IStudentPersonal(IKofaObject):
320    """Representation of student personal data.
321    """
322    personal_updated = schema.Datetime(
323        title = _(u'Updated'),
324        required = False,
325        readonly = False,
326        )
327
328    perm_address = schema.Text(
329        title = _(u'Permanent Address'),
330        required = False,
331        )
332
333class IStudentTranscript(IKofaObject):
334    """Representation of student transcript data.
335    """
336
337    transcript_comment = schema.Text(
338        title = _(u'Comment'),
339        required = False,
340        )
341
342
343class IStudent(IStudentBase,IUGStudentClearance,IPGStudentClearance,
344    IStudentPersonal, IStudentTranscript):
345    """Representation of a student.
346    """
347
348class IStudentPersonalEdit(IStudentPersonal):
349    """Interface for editing personal data by students.
350    Here we can repeat the fields from IStudentPersonal and set the
351    `required` if necessary.
352    """
353
354    perm_address = schema.Text(
355        title = _(u'Permanent Address'),
356        required = True,
357        )
358
359class IStudentUpdateByRegNo(IStudent):
360    """Representation of a student. Skip regular reg_number validation.
361    """
362    reg_number = schema.TextLine(
363        title = _(u'Registration Number'),
364        required = False,
365        )
366
367class IStudentUpdateByMatricNo(IStudent):
368    """Representation of a student. Skip regular matric_number validation.
369    """
370    matric_number = schema.TextLine(
371        title = _(u'Matriculation Number'),
372        required = False,
373        )
374
375class IStudentRequestPW(IStudent):
376    """Representation of a student for first-time password request.
377    This interface is used when students use the requestpw page to
378    login for the the first time.
379    """
380    number = schema.TextLine(
381        title = _(u'Registr. or Matric. Number'),
382        required = True,
383        )
384
385    firstname = schema.TextLine(
386        title = _(u'First Name'),
387        required = True,
388        )
389
390    email = schema.ASCIILine(
391        title = _(u'Email Address'),
392        required = True,
393        constraint=validate_email,
394        )
395
396class IStudentStudyCourse(IKofaObject):
397    """Representation of student study course data.
398    """
399    next_session_allowed = Attribute('True if the student can proceed to next session')
400    is_postgrad = Attribute('True if student is postgraduate student')
401    is_current = Attribute('True if the study course is the current course of studies')
402    is_previous = Attribute('True if the study course is the previous course of studies')
403
404    certificate = schema.Choice(
405        title = _(u'Certificate'),
406        source = CertificateSource(),
407        required = False,
408        )
409
410    entry_mode = schema.Choice(
411        title = _(u'Entry Mode'),
412        source = StudyModeSource(),
413        required = True,
414        readonly = False,
415        )
416
417    entry_session = schema.Choice(
418        title = _(u'Entry Session'),
419        source = academic_sessions_vocab,
420        #default = datetime.now().year,
421        required = True,
422        readonly = False,
423        )
424
425    current_session = schema.Choice(
426        title = _(u'Current Session'),
427        source = academic_sessions_vocab,
428        required = True,
429        readonly = False,
430        )
431
432    current_level = schema.Choice(
433        title = _(u'Current Level'),
434        source = StudyLevelSource(),
435        required = False,
436        readonly = False,
437        )
438
439    current_verdict = schema.Choice(
440        title = _(u'Current Verdict'),
441        source = VerdictSource(),
442        default = '0',
443        required = False,
444        )
445
446    previous_verdict = schema.Choice(
447        title = _(u'Previous Verdict'),
448        source = VerdictSource(),
449        default = '0',
450        required = False,
451        )
452
453    def addStudentStudyLevel(cert, studylevel):
454        """Add a study level object.
455        """
456
457    def getTranscriptData():
458        """Get a sorted list of dicts with level and course ticket data.
459        This method is used for transcripts.
460        """
461
462class IStudentStudyCourseTransfer(IStudentStudyCourse):
463    """An interface used for student transfers.
464    """
465    certificate = schema.Choice(
466        title = _(u'Certificate'),
467        source = CertificateSource(),
468        required = True,
469        )
470
471    current_level = schema.Choice(
472        title = _(u'Current Level'),
473        source = StudyLevelSource(),
474        required = True,
475        readonly = False,
476        )
477
478    entry_session = schema.Choice(
479        title = _(u'Entry Session'),
480        source = academic_sessions_vocab,
481        #default = datetime.now().year,
482        required = False,
483        readonly = False,
484        )
485
486
487IStudentStudyCourseTransfer['certificate'].order = IStudentStudyCourse[
488    'certificate'].order
489IStudentStudyCourseTransfer['current_level'].order = IStudentStudyCourse[
490    'current_level'].order
491
492class IStudentStudyCourseTranscript(IKofaObject):
493    """An interface for student transcripts.
494    """
495    entry_mode = schema.Choice(
496        title = _(u'Entry Mode'),
497        source = StudyModeSource(),
498        required = True,
499        readonly = False,
500        )
501
502    entry_session = schema.Choice(
503        title = _(u'Entry Session'),
504        source = academic_sessions_vocab,
505        #default = datetime.now().year,
506        required = True,
507        readonly = False,
508        )
509
510class IStudentVerdictUpdate(IKofaObject):
511    """A interface for verdict imports.
512    """
513    current_verdict = schema.Choice(
514        title = _(u'Current Verdict'),
515        source = VerdictSource(),
516        required = True,
517        )
518
519    current_session = schema.Choice(
520        title = _(u'Current Session'),
521        source = academic_sessions_vocab,
522        required = True,
523        )
524
525    current_level = schema.Choice(
526        title = _(u'Current Level'),
527        source = StudyLevelSource(),
528        required = True,
529        )
530
531    bypass_validation = schema.Bool(
532        title = _(u'Bypass validation'),
533        required = False,
534        )
535
536    validated_by = schema.TextLine(
537        title = _(u'Validated by'),
538        required = False,
539        )
540
541class IStudentStudyLevel(IKofaObject):
542    """A representation of student study level data.
543    """
544    certcode = Attribute('The certificate code of the study course')
545    is_current_level = Attribute('True if level is current level of the student')
546    level_title = Attribute('Level title from source')
547    getSessionString = Attribute('Session title from source')
548    number_of_tickets = Attribute('Number of tickets contained in this level')
549    passed_params = Attribute('Information about passed and failed courses')
550    gpa_params_rectified = Attribute('Corrected sessional GPA parameters')
551    gpa_params = Attribute('GPA parameters for this level.')
552    cumulative_params = Attribute('Cumulative GPA and other cumulative parameters for this level')
553    course_registration_allowed = Attribute('True if registerin courses is allowed')
554
555    level = schema.Choice(
556        title = _(u'Level'),
557        source = StudyLevelSource(),
558        required = True,
559        readonly = False,
560        )
561
562    level_session = schema.Choice(
563        title = _(u'Session'),
564        source = academic_sessions_vocab,
565        required = True,
566        )
567
568    level_verdict = schema.Choice(
569        title = _(u'Verdict'),
570        source = VerdictSource(),
571        default = '0',
572        required = False,
573        )
574
575    validated_by = schema.TextLine(
576        title = _(u'Validated by'),
577        default = None,
578        required = False,
579        )
580
581    validation_date = schema.Datetime(
582        title = _(u'Validation Date'),
583        required = False,
584        readonly = False,
585        )
586
587    total_credits = schema.Int(
588        title = _(u'Total Credits'),
589        required = False,
590        readonly = True,
591        )
592
593    gpa = schema.Int(
594        title = _(u'Unrectified GPA'),
595        required = False,
596        readonly = True,
597        )
598
599    def addCourseTicket(ticket, course):
600        """Add a course ticket object.
601        """
602
603    def addCertCourseTickets(cert):
604        """Collect all certificate courses and create course
605        tickets automatically.
606        """
607
608class ICourseTicket(IKofaObject):
609    """A representation of course ticket data.
610    """
611    certcode = Attribute('Certificate code of the study course')
612    level_session = Attribute('Session of the study level the ticket has been added to')
613    level = Attribute('Level value of the study level the ticket has been added to')
614    grade = Attribute('Grade calculated from score')
615    weight = Attribute('Weight calculated from score')
616    removable_by_student = Attribute('True if student is allowed to remove the ticket')
617    editable_by_lecturer = Attribute('True if lecturer is allowed to edit the ticket')
618
619    code = Attribute('Code of the original course')
620
621    title = schema.TextLine(
622        title = _(u'Title'),
623        required = False,
624        )
625
626    fcode = schema.TextLine(
627        title = _(u'Faculty Code'),
628        required = False,
629        )
630
631    dcode = schema.TextLine(
632        title = _(u'Department Code'),
633        required = False,
634        )
635
636    semester = schema.Choice(
637        title = _(u'Semester/Term'),
638        source = SemesterSource(),
639        required = False,
640        )
641
642    passmark = schema.Int(
643        title = _(u'Passmark'),
644        required = False,
645        )
646
647    credits = schema.Int(
648        title = _(u'Credits'),
649        required = False,
650        )
651
652    mandatory = schema.Bool(
653        title = _(u'Required'),
654        default = False,
655        required = False,
656        )
657
658    score = schema.Int(
659        title = _(u'Score'),
660        default = None,
661        required = False,
662        missing_value = None,
663        )
664
665    carry_over = schema.Bool(
666        title = _(u'Carry-over Course'),
667        default = False,
668        required = False,
669        )
670
671    automatic = schema.Bool(
672        title = _(u'Automatical Creation'),
673        default = False,
674        required = False,
675        )
676
677class ICourseTicketAdd(IKofaObject):
678    """An interface for adding course tickets.
679    """
680    course = schema.Choice(
681        title = _(u'Course'),
682        source = CourseSource(),
683        readonly = False,
684        )
685
686class ICourseTicketImport(ICourseTicket):
687    """An interface for importing course results and nothing more.
688    """
689    score = schema.Int(
690        title = _(u'Score'),
691        required = False,
692        readonly = False,
693        )
694
695    level_session = schema.Choice(
696        title = _(u'Level Session'),
697        source = academic_sessions_vocab,
698        required = False,
699        readonly = False,
700        )
701
702class IStudentAccommodation(IKofaObject):
703    """A container for student accommodation objects.
704    """
705
706    desired_hostel = schema.TextLine(
707        title = _(u'Desired Hostel'),
708        required = False,
709        )
710
711    def addBedTicket(bedticket):
712        """Add a bed ticket object.
713        """
714
715
716class IBedTicket(IKofaObject):
717    """A representation of accommodation booking data.
718    """
719    bed = Attribute('The bed object')
720    maint_payment_made = Attribute('True if maintenance payment is made')
721
722    display_coordinates = schema.TextLine(
723        title = _(u'Allocated Bed'),
724        required = False,
725        readonly = True,
726        )
727
728    bed_coordinates = schema.TextLine(
729        title = u'',
730        required = True,
731        readonly = False,
732        )
733
734    bed_type = schema.TextLine(
735        title = _(u'Requested Bed Type'),
736        required = True,
737        readonly = False,
738        )
739
740    booking_session = schema.Choice(
741        title = _(u'Session'),
742        source = academic_sessions_vocab,
743        required = True,
744        readonly = False
745        )
746
747    booking_date = schema.Datetime(
748        title = _(u'Booking Date'),
749        required = False,
750        readonly = False,
751        )
752
753    booking_code = schema.TextLine(
754        title = _(u'Booking Activation Code'),
755        required = False,
756        readonly = False,
757        )
758
759    def getSessionString():
760        """Returns the title of academic_sessions_vocab term of the session
761        when the bed was booked.
762        """
763
764class IStudentPaymentsContainer(IPaymentsContainer):
765    """A container for student payment objects.
766    """
767
768    certificate = Attribute('Certificate to determine the correct p_level value')
769
770class IStudentOnlinePayment(IOnlinePayment):
771    """A student payment via payment gateways.
772    """
773
774    certificate = Attribute('Certificate to determine the correct p_level value')
775    student = Attribute('Student')
776
777    p_current = schema.Bool(
778        title = _(u'Current Session Payment'),
779        default = True,
780        required = False,
781        )
782
783    p_level = schema.Choice(
784        title = _(u'Payment Level'),
785        source = StudyLevelSource(),
786        required = False,
787        )
788
789    def redeemTicket():
790        """Either create an appropriate access code or trigger an action
791        directly.
792        """
793
794    def doAfterStudentPayment():
795        """Process student after payment was made.
796        """
797
798    def doAfterStudentPaymentApproval():
799        """Process student after payment was approved.
800        """
801
802    def approveStudentPayment():
803        """Approve payment and process student.
804        """
805
806IStudentOnlinePayment['p_level'].order = IStudentOnlinePayment[
807    'p_session'].order
808
809class IStudentPreviousPayment(IKofaObject):
810    """An interface for adding previous session payments.
811    """
812
813    p_category = schema.Choice(
814        title = _(u'Payment Category'),
815        default = u'schoolfee',
816        source = PreviousPaymentCategorySource(),
817        required = True,
818        )
819
820    p_session = schema.Choice(
821        title = _(u'Payment Session'),
822        source = academic_sessions_vocab,
823        required = True,
824        )
825
826    p_level = schema.Choice(
827        title = _(u'Payment Level'),
828        source = StudyLevelSource(),
829        required = True,
830        )
831
832class IStudentBalancePayment(IKofaObject):
833    """An interface for adding balances.
834    """
835
836    p_category = schema.Choice(
837        title = _(u'Payment Category'),
838        default = u'schoolfee',
839        required = True,
840        source = BalancePaymentCategorySource(),
841        )
842
843    balance_session = schema.Choice(
844        title = _(u'Payment Session'),
845        source = academic_sessions_vocab,
846        required = True,
847        )
848
849    balance_level = schema.Choice(
850        title = _(u'Payment Level'),
851        source = StudyLevelSource(),
852        required = True,
853        )
854
855    balance_amount = schema.Float(
856        title = _(u'Balance Amount'),
857        default = None,
858        required = True,
859        readonly = False,
860        description = _(
861            u'Balance in Naira '),
862        )
863
864class ICSVStudentExporter(ICSVExporter):
865    """A regular ICSVExporter that additionally supports exporting
866      data from a given student object.
867    """
868    def get_filtered(site, **kw):
869        """Get a filtered set of students.
870        """
871
872    def get_selected(site, selected):
873        """Get set of selected students.
874        """
875
876    def export_student(student, filepath=None):
877        """Export data for a given student.
878        """
879
880    def export_filtered(site, filepath=None, **kw):
881        """Export data for filtered set of students.
882        """
883
884    def export_selected(site, filepath=None, **kw):
885        """Export data for selected set of students.
886        """
Note: See TracBrowser for help on using the repository browser.