Changeset 13736


Ignore:
Timestamp:
26 Feb 2016, 08:18:15 (9 years ago)
Author:
Henrik Bettermann
Message:

Show certificate-specific p_level value on payment pages.
Ensure that only allowed payment levels can be selected when
adding a balance payment.

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

Legend:

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

    r13711 r13736  
    441.4.2.dev0 (unreleased)
    55=======================
     6
     7* Show certificate-specific p_level value on payment pages.
     8  Ensure that only allowed payment levels can be selected when
     9  adding a balance payment.
    610
    711* Add `flash_notice` field.
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r13641 r13736  
    362362        sorted(iface_names(
    363363            IStudentOnlinePayment, exclude_attribs=False,
    364             omit=['display_item']))) + (
     364            omit=['display_item', 'certificate']))) + (
    365365            'student_id','state','current_session')
    366366    title = _(u'Student Payments')
     
    410410        sorted(iface_names(
    411411            IStudentOnlinePayment, exclude_attribs=False,
    412             omit=['display_item']))) + (
     412            omit=['display_item', 'certificate']))) + (
    413413            'student_id','matric_number','reg_number',
    414414            'firstname', 'middlename', 'lastname',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r13733 r13736  
    145145        """
    146146
    147     unique_student_id = Attribute("""A unique student id.""")
     147    unique_student_id = Attribute('A unique student id')
    148148
    149149class IStudentNavigation(IStudentNavigationBase):
     
    766766    """
    767767
     768    certificate = Attribute('Certificate to determine the correct p_level value')
     769
    768770class IStudentOnlinePayment(IOnlinePayment):
    769771    """A student payment via payment gateways.
    770772    """
     773
     774    certificate = Attribute('Certificate to determine the correct p_level value')
    771775
    772776    p_current = schema.Bool(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py

    r13398 r13736  
    4747        return self.__parent__
    4848
     49    @property
     50    def certificate(self):
     51        try:
     52            return self.student['studycourse'].certificate
     53        except TypeError:
     54            return None
     55
    4956    def writeLogMessage(self, view, message):
    5057        return self.__parent__.writeLogMessage(view, message)
     
    6774            return self.__parent__.__parent__
    6875        except AttributeError:
     76            return None
     77
     78    @property
     79    def certificate(self):
     80        try:
     81            return self.student['studycourse'].certificate
     82        except TypeError:
    6983            return None
    7084
Note: See TracChangeset for help on using the changeset viewer.