Ignore:
Timestamp:
2 Jun 2012, 08:03:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Class attribute defines payment ticket factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r8596 r8597  
    225225    """
    226226    grok.implements(IStudentsUtils)
     227    paymentfactory = u'waeup.StudentOnlinePayment'
    227228
    228229    def getReturningData(self, student):
     
    259260
    260261        """
    261         factory = u'waeup.StudentOnlinePayment'
    262262        details = {}
    263263        p_item = u''
     
    305305               ticket.p_session == p_session:
    306306                  return _('This type of payment has already been made.'), None
    307         payment = createObject(factory)
    308         #self.applyData(payment, **data)
     307        payment = createObject(self.paymentfactory)
    309308        timestamp = "%d" % int(time()*1000)
    310309        payment.p_id = "p%s" % timestamp
Note: See TracChangeset for help on using the changeset viewer.