Ignore:
Timestamp:
13 May 2014, 17:47:13 (11 years ago)
Author:
Henrik Bettermann
Message:

Add necessary components for browser tests (not used in custom packages).

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r11630 r11639  
    147147    submit_button = _('Submit')
    148148
     149    action = None
     150    site_name = None
     151    currency = None
     152    pay_item_id = None
     153    product_id = None
     154    xml_data = None
     155
    149156    def update(self):
    150157        #if self.context.p_state != 'unpaid':
     
    160167            self.redirect(self.url(self.context, '@@index'))
    161168            return
     169        kofa_utils = getUtility(IKofaUtils)
    162170        self.amount_auth = 100 * self.context.amount_auth
    163171        xmldict = {}
     
    168176            xmldict['department'] = None
    169177            xmldict['faculty'] = None
    170         self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]
    171         tz = getUtility(IKofaUtils).tzinfo
     178        self.category = kofa_utils.PAYMENT_CATEGORIES[self.context.p_category]
     179        tz = kofa_utils.tzinfo
    172180        self.local_date_time = to_timezone(
    173181            self.context.creation_date, tz).strftime("%Y-%m-%d %H:%M:%S %Z")
     
    185193    label = _('Submit data to CollegePAY (Interswitch Payment Gateway)')
    186194    submit_button = _('Submit')
     195
     196    action = None
     197    site_name = None
     198    currency = None
     199    pay_item_id = None
     200    product_id = None
     201    xml_data = None
    187202
    188203    def update(self):
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/payments.py

    r8863 r11639  
    4747        return self.__parent__.__parent__
    4848
    49 NigeriaStudentOnlinePayment = attrs_to_fields(NigeriaStudentOnlinePayment)
     49NigeriaStudentOnlinePayment = attrs_to_fields(NigeriaStudentOnlinePayment,
     50    omit=['display_item'])
    5051
    5152class NigeriaStudentOnlinePaymentFactory(StudentOnlinePaymentFactory):
Note: See TracChangeset for help on using the changeset viewer.