Changeset 6860
- Timestamp:
- 4 Oct 2011, 10:09:51 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6859 r6860 11 11 contextual_reg_num_source, contextual_mat_num_source, 12 12 ) 13 from waeup.sirp.payments.interfaces import IPaymentsContainer 13 14 14 15 class IStudentsContainer(IWAeUPObject): … … 306 307 """ 307 308 308 class IStudentPaymentsContainer(I WAeUPObject):309 class IStudentPaymentsContainer(IPaymentsContainer): 309 310 """A container for student payment objects. 310 311 -
main/waeup.sirp/trunk/src/waeup/sirp/students/payments.py
r6642 r6860 15 15 ## 16 16 """ 17 Container which contains the (student) payment sobjects.17 Container which contains the (student) payment objects. 18 18 """ 19 19 import grok 20 20 from grok import index 21 21 from zope.component.interfaces import IFactory 22 from waeup.sirp.students.interfaces import IStudentPayments, IStudentNavigation 22 from waeup.sirp.students.interfaces import IStudentPaymentsContainer, IStudentNavigation 23 from waeup.sirp.payments import PaymentsContainer 23 24 from waeup.sirp.utils.helpers import attrs_to_fields 24 25 25 class StudentPayments (grok.Container):26 class StudentPaymentsContainer(PaymentsContainer): 26 27 """This is a container for student payments. 27 28 """ 28 grok.implements(IStudentPayments , IStudentNavigation)29 grok.provides(IStudentPayments )29 grok.implements(IStudentPaymentsContainer, IStudentNavigation) 30 grok.provides(IStudentPaymentsContainer) 30 31 31 32 def __init__(self): 32 super(StudentPayments , self).__init__()33 super(StudentPaymentsContainer, self).__init__() 33 34 return 34 35 … … 36 37 return self.__parent__ 37 38 38 StudentPayments = attrs_to_fields(StudentPayments)39 StudentPaymentsContainer = attrs_to_fields(StudentPaymentsContainer)
Note: See TracChangeset for help on using the changeset viewer.