Changeset 6948


Ignore:
Timestamp:
25 Oct 2011, 19:29:16 (13 years ago)
Author:
Henrik Bettermann
Message:

see r6947

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/students/browser.py

    r6925 r6948  
    99    """
    1010
    11     @grok.action('Create ticket')
    12     def createTicket(self, **data):
    13         payment = createObject(u'waeup.StudentOnlinePayment')
    14         self.applyData(payment, **data)
    15         timestamp = "%d" % int(time()*1000)
    16         #order_id = "%s%s" % (student_id[1:],timestamp)
    17         payment.p_id = "p%s" % timestamp
    18         (payment.amount_auth,
    19             payment.p_item, payment.p_session,
    20             payment.surcharge_1,
    21             payment.surcharge_2,
    22             payment.surcharge_3,
    23             error)  = getPaymentDetails(
    24             data['p_category'],self.context.__parent__)
    25         if error:
    26             self.flash(error)
    27             self.redirect(self.url(self.context, u'@@manage'))
    28             return
    29         self.context[payment.p_id] = payment
    30         self.flash('Payment ticket created.')
    31         self.redirect(self.url(self.context, u'@@manage'))
    32         return
     11    def getPaymentDetails(self, category, student):
     12        return getPaymentDetails(category, student)
Note: See TracChangeset for help on using the changeset viewer.