Ignore:
Timestamp:
12 Jun 2018, 06:19:37 (6 years ago)
Author:
Henrik Bettermann
Message:

Rename StudentPaymentsOverviewExporter.

Location:
main/waeup.kofa/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r15042 r15047  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Rename `StudentPaymentsOverviewExporter`.
    68
    79* Fix `CourseTicketExporter`. Ticket level and session filter
  • main/waeup.kofa/trunk/docs/source/userdocs/datacenter/export.rst

    r14780 r15047  
    256256  postprocessing by the university.
    257257
    258 DataForBursary Exporter
    259 -----------------------
     258Data For Bursary Exporter
     259-------------------------
    260260
    261261.. autoclass:: waeup.kofa.students.export.DataForBursaryExporter()
     
    265265  .. automethod:: waeup.kofa.students.export.DataForBursaryExporter.mangle_value()
    266266
    267 Student Payments Overview Exporter
    268 ----------------------------------
    269 
    270 .. autoclass:: waeup.kofa.students.export.StudentPaymentsOverviewExporter()
    271 
    272   .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.fields
    273   .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.title
    274   .. autoattribute:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.curr_year
    275   .. automethod:: waeup.kofa.students.export.StudentPaymentsOverviewExporter.mangle_value()
     267School Fee Payments Overview Exporter
     268-------------------------------------
     269
     270.. autoclass:: waeup.kofa.students.export.SchoolFeePaymentsOverviewExporter()
     271
     272  .. autoattribute:: waeup.kofa.students.export.SchoolFeePaymentsOverviewExporter.fields
     273  .. autoattribute:: waeup.kofa.students.export.SchoolFeePaymentsOverviewExporter.title
     274  .. autoattribute:: waeup.kofa.students.export.SchoolFeePaymentsOverviewExporter.curr_year
     275  .. automethod:: waeup.kofa.students.export.SchoolFeePaymentsOverviewExporter.mangle_value()
    276276
    277277Student Study Levels Overview Exporter
     
    292292  .. autoattribute:: waeup.kofa.students.export.ComboCardDataExporter.title
    293293  .. automethod:: waeup.kofa.students.export.ComboCardDataExporter.mangle_value()
     294
     295Data For Lecturer Exporter
     296--------------------------
     297
     298.. autoclass:: waeup.kofa.students.export.DataForLecturerExporter()
     299
     300  .. autoattribute:: waeup.kofa.students.export.DataForLecturerExporter.fields
     301  .. autoattribute:: waeup.kofa.students.export.DataForLecturerExporter.title
     302  .. automethod:: waeup.kofa.students.export.DataForLecturerExporter.mangle_value()
    294303
    295304File Export
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r15042 r15047  
    34093409                exporters += [('Bursary Data', 'bursary')]
    34103410            if checkPermission('waeup.exportPaymentsOverview', self.context):
    3411                 exporters += [('Student Payments Overview', 'paymentsoverview')]
     3411                exporters += [('Student Payments Overview', 'sfpaymentsoverview')]
    34123412            self.exporters = exporters
    34133413            return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r15043 r15047  
    461461
    462462class DataForBursaryExporter(StudentPaymentExporter):
    463     """The DataForBursary Exporter works just like the Student Payments Exporter
     463    """The DataForBursary Exporter works just like the Student Payment Exporter
    464464    but it exports much more information about the student. It combines
    465465    payment and student data in one table in order to spare postprocessing of
     
    534534            value, name, context=context)
    535535
    536 class StudentPaymentsOverviewExporter(StudentExporter):
    537     """The Student Payments Overview Exporter first filters the set of students
     536class SchoolFeePaymentsOverviewExporter(StudentExporter):
     537    """The School Fee Payments Overview Exporter first filters the set of students
    538538    by searching the students catalog. Then it exports some student base data
    539539    together with the total school fee amount paid in each year over a
    540540    predefined year range (current year - 9, ... , current year + 1).
    541541    """
    542     grok.name('paymentsoverview')
     542    grok.name('sfpaymentsoverview')
    543543
    544544    curr_year = datetime.now().year
     
    551551        'entry_session', 'reg_number'
    552552        ) + year_range_tuple
    553     title = _(u'Student Payments Overview')
     553    title = _(u'Student School Fee Payments Overview')
    554554
    555555    def mangle_value(self, value, name, context=None):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r15042 r15047  
    39353935        self.browser.getLink("Export student data").click()
    39363936        self.browser.getControl("Configure new export").click()
    3937         # Only the paymentsoverview exporter is available for department officers
     3937        # Only the sfpaymentsoverview exporter is available for department officers
    39383938        self.assertFalse('<option value="students">' in self.browser.contents)
    39393939        self.assertTrue(
    3940             '<option value="paymentsoverview">' in self.browser.contents)
    3941         self.browser.getControl(name="exporter").value = ['paymentsoverview']
     3940            '<option value="sfpaymentsoverview">' in self.browser.contents)
     3941        self.browser.getControl(name="exporter").value = ['sfpaymentsoverview']
    39423942        self.browser.getControl(name="session").value = ['2004']
    39433943        self.browser.getControl(name="level").value = ['100']
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r14984 r15047  
    3030    StudentExporter, StudentStudyCourseExporter, StudentStudyLevelExporter,
    3131    CourseTicketExporter, StudentPaymentExporter, BedTicketExporter,
    32     StudentPaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
     32    SchoolFeePaymentsOverviewExporter, StudentStudyLevelsOverviewExporter,
    3333    ComboCardDataExporter, DataForBursaryExporter,
    3434    StudentUnpaidPaymentExporter,
     
    11521152
    11531153
    1154 class StudentPaymentsOverviewExporterTest(StudentImportExportSetup):
     1154class SchoolFeePaymentsOverviewExporterTest(StudentImportExportSetup):
    11551155
    11561156    layer = FunctionalLayer
    11571157
    11581158    def setUp(self):
    1159         super(StudentPaymentsOverviewExporterTest, self).setUp()
     1159        super(SchoolFeePaymentsOverviewExporterTest, self).setUp()
    11601160        self.setup_for_export()
    11611161        return
     
    11631163    def test_ifaces(self):
    11641164        # make sure we fullfill interface contracts
    1165         obj = StudentPaymentsOverviewExporter()
     1165        obj = SchoolFeePaymentsOverviewExporter()
    11661166        verifyObject(ICSVStudentExporter, obj)
    1167         verifyClass(ICSVStudentExporter, StudentPaymentsOverviewExporter)
     1167        verifyClass(ICSVStudentExporter, SchoolFeePaymentsOverviewExporter)
    11681168        return
    11691169
    11701170    def test_get_as_utility(self):
    11711171        # we can get a payments exporter as utility
    1172         result = queryUtility(ICSVExporter, name="paymentsoverview")
     1172        result = queryUtility(ICSVExporter, name="sfpaymentsoverview")
    11731173        self.assertTrue(result is not None)
    11741174        return
     
    11761176    def test_export(self):
    11771177        self.setup_student(self.student)
    1178         exporter = StudentPaymentsOverviewExporter()
     1178        exporter = SchoolFeePaymentsOverviewExporter()
    11791179        exporter.export([self.student], self.outfile)
    11801180        result = open(self.outfile, 'rb').read()
     
    12191219        payment_4.p_category = u'schoolfee'
    12201220        self.student['payments']['my-4thpayment'] = payment_4
    1221         exporter = StudentPaymentsOverviewExporter()
     1221        exporter = SchoolFeePaymentsOverviewExporter()
    12221222        exporter.export_all(self.app, self.outfile)
    12231223        result = open(self.outfile, 'rb').read()
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14915 r15047  
    10731073            'studentstudylevels', 'coursetickets',
    10741074            'studentpayments', 'studentunpaidpayments',
    1075             'bedtickets', 'paymentsoverview',
     1075            'bedtickets', 'sfpaymentsoverview',
    10761076            'studylevelsoverview', 'combocard', 'bursary')
    10771077
Note: See TracChangeset for help on using the changeset viewer.