Changeset 6859 for main/waeup.sirp


Ignore:
Timestamp:
4 Oct 2011, 10:07:26 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename StudentPayments? to StudentPaymentsContainer?.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/__init__.py

    r6636 r6859  
    77from waeup.sirp.students.container import StudentsContainer
    88from waeup.sirp.students.studycourse import StudentStudyCourse
    9 from waeup.sirp.students.payments import StudentPayments
     9from waeup.sirp.students.payments import StudentPaymentsContainer
    1010from waeup.sirp.students.accommodation import StudentAccommodation
    1111
     
    1616    'StudentsContainer',
    1717    'StudentStudyCourse',
    18     'StudentPayments',
     18    'StudentPaymentsContainer',
    1919    'StudentAccommodation'
    2020    ]
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6820 r6859  
    3333from waeup.sirp.students.interfaces import (
    3434    IStudentsContainer, IStudent, IStudentClearance, IStudentPasswordSetting,
    35     IStudentPersonal, IStudentBase, IStudentStudyCourse, IStudentPayments,
     35    IStudentPersonal, IStudentBase, IStudentStudyCourse,
    3636    IStudentAccommodation, IStudentClearanceEdit, IStudentStudyLevel,
    37     ICourseTicket, ICourseTicketAdd,
     37    ICourseTicket, ICourseTicketAdd, IStudentPaymentsContainer
    3838    )
    3939from waeup.sirp.students.catalog import search
     
    9797    """A breadcrumb for the student payments folder.
    9898    """
    99     grok.context(IStudentPayments)
     99    grok.context(IStudentPaymentsContainer)
    100100    title = u'Payments'
    101101
     
    753753    """ Page to display the student payments
    754754    """
    755     grok.context(IStudentPayments)
     755    grok.context(IStudentPaymentsContainer)
    756756    grok.name('index')
    757757    grok.require('waeup.viewStudent')
    758     form_fields = grok.AutoFields(IStudentPayments)
     758    form_fields = grok.AutoFields(IStudentPaymentsContainer)
    759759    #grok.template('paymentspage')
    760760    title = 'Payments'
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r6849 r6859  
    306306    """
    307307
    308 class IStudentPayments(IWAeUPObject):
     308class IStudentPaymentsContainer(IWAeUPObject):
    309309    """A container for student payment objects.
    310310
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r6841 r6859  
    2828    IStudentPersonalEdit)
    2929from waeup.sirp.students.studycourse import StudentStudyCourse
    30 from waeup.sirp.students.payments import StudentPayments
     30from waeup.sirp.students.payments import StudentPaymentsContainer
    3131from waeup.sirp.students.accommodation import StudentAccommodation
    3232from waeup.sirp.utils.helpers import attrs_to_fields, get_current_principal
     
    103103    studycourse = StudentStudyCourse()
    104104    student['studycourse'] = studycourse
    105     payments = StudentPayments()
     105    payments = StudentPaymentsContainer()
    106106    student['payments'] = payments
    107107    accommodation = StudentAccommodation()
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_student.py

    r6795 r6859  
    2121from waeup.sirp.students.studycourse import StudentStudyCourse
    2222from waeup.sirp.students.studylevel import StudentStudyLevel, CourseTicket
    23 from waeup.sirp.students.payments import StudentPayments
     23from waeup.sirp.students.payments import StudentPaymentsContainer
    2424from waeup.sirp.students.accommodation import StudentAccommodation
    2525from waeup.sirp.students.interfaces import (
    26     IStudent, IStudentStudyCourse, IStudentPayments, IStudentAccommodation,
     26    IStudent, IStudentStudyCourse, IStudentPaymentsContainer, IStudentAccommodation,
    2727    IStudentStudyLevel, ICourseTicket)
    2828from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     
    3838        self.studylevel = StudentStudyLevel()
    3939        self.courseticket = CourseTicket()
    40         self.payments = StudentPayments()
     40        self.payments = StudentPaymentsContainer()
    4141        self.accommodation = StudentAccommodation()
    4242        return
     
    5353        verify.verifyObject(IStudentStudyLevel, self.studylevel)
    5454        verify.verifyObject(ICourseTicket, self.courseticket)
    55         verify.verifyClass(IStudentPayments, StudentPayments)
    56         verify.verifyObject(IStudentPayments, self.payments)
     55        verify.verifyClass(IStudentPaymentsContainer, StudentPaymentsContainer)
     56        verify.verifyObject(IStudentPaymentsContainer, self.payments)
    5757        verify.verifyClass(IStudentAccommodation, StudentAccommodation)
    5858        verify.verifyObject(IStudentAccommodation, self.accommodation)
Note: See TracChangeset for help on using the changeset viewer.