Changeset 6860 for main/waeup.sirp/trunk


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

Inherit StudentPaymentsContainer? from PaymentsContainer? in payments module (to be added).

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  
    1111  contextual_reg_num_source, contextual_mat_num_source,
    1212  )
     13from waeup.sirp.payments.interfaces import IPaymentsContainer
    1314
    1415class IStudentsContainer(IWAeUPObject):
     
    306307    """
    307308
    308 class IStudentPaymentsContainer(IWAeUPObject):
     309class IStudentPaymentsContainer(IPaymentsContainer):
    309310    """A container for student payment objects.
    310311
  • main/waeup.sirp/trunk/src/waeup/sirp/students/payments.py

    r6642 r6860  
    1515##
    1616"""
    17 Container which contains the (student) payments objects.
     17Container which contains the (student) payment objects.
    1818"""
    1919import grok
    2020from grok import index
    2121from zope.component.interfaces import IFactory
    22 from waeup.sirp.students.interfaces import IStudentPayments, IStudentNavigation
     22from waeup.sirp.students.interfaces import IStudentPaymentsContainer, IStudentNavigation
     23from waeup.sirp.payments import PaymentsContainer
    2324from waeup.sirp.utils.helpers import attrs_to_fields
    2425
    25 class StudentPayments(grok.Container):
     26class StudentPaymentsContainer(PaymentsContainer):
    2627    """This is a container for student payments.
    2728    """
    28     grok.implements(IStudentPayments, IStudentNavigation)
    29     grok.provides(IStudentPayments)
     29    grok.implements(IStudentPaymentsContainer, IStudentNavigation)
     30    grok.provides(IStudentPaymentsContainer)
    3031
    3132    def __init__(self):
    32         super(StudentPayments, self).__init__()
     33        super(StudentPaymentsContainer, self).__init__()
    3334        return
    3435
     
    3637        return self.__parent__
    3738
    38 StudentPayments = attrs_to_fields(StudentPayments)
     39StudentPaymentsContainer = attrs_to_fields(StudentPaymentsContainer)
Note: See TracChangeset for help on using the changeset viewer.