Changeset 8408 for main


Ignore:
Timestamp:
10 May 2012, 16:33:38 (13 years ago)
Author:
uli
Message:

Extend interfaces for StudentsContainer? (require attribute to deliver
a unique student ID) and introduce a more specialized interface for
CSV export of students.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r8346 r8408  
    2222from zc.sourcefactory.contextual import BasicContextualSourceFactory
    2323from waeup.kofa.interfaces import (
    24     IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils)
     24    IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils,
     25    ICSVExporter)
    2526from waeup.kofa.interfaces import MessageFactory as _
    2627from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber
     
    126127        """
    127128
     129    unique_student_id = Attribute("""A unique student id.""")
     130
    128131class IStudentNavigation(IKofaObject):
    129132    """Interface needed for student navigation.
     
    510513IStudentOnlinePayment['p_level'].order = IStudentOnlinePayment[
    511514    'p_session'].order
     515
     516class ICSVStudentExporter(ICSVExporter):
     517    """A regular ICSVExporter that additionally supports exporting
     518      data from a given student object.
     519    """
     520
     521    def export_student(student, filepath=None):
     522        """Export data for a given student.
     523        """
Note: See TracChangeset for help on using the changeset viewer.