Changeset 9464 for main/waeup.kwarapoly


Ignore:
Timestamp:
30 Oct 2012, 09:27:19 (12 years ago)
Author:
Henrik Bettermann
Message:

Add Interswitch logo.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r9442 r9464  
    2222from xml.dom.minidom import parseString
    2323import grok
    24 from zope.component import getUtility
     24from zope.interface import Interface
     25from zope.component import getUtility, queryAdapter
    2526from waeup.kofa.browser.layout import KofaPage, UtilityView
    2627from waeup.kofa.accesscodes import create_accesscode
     
    128129    return True, msg, log
    129130
     131def interswitch_img_url(view):
     132    static = view.static
     133    if static is None or static.get(
     134        'interswitch_verve_mastercard.gif', None) is None:
     135        static = queryAdapter(
     136            self.request, Interface, name='waeup.kwarapoly.interswitch')
     137    return static['interswitch_verve_mastercard.gif']()
     138
    130139class InterswitchActionButtonStudent(APABStudent):
    131140    grok.order(1)
     
    188197    product_id = PRODUCT_ID
    189198    mac = '737396C271FB8E2BA1A612A942267553E16373658A5F83D90DAFFBB806C16E9E6284006C06CEFFB55768004179D7BC01CD237CCE6314B938A5A5D9F49369DE5A'
     199
     200    def interswitch_img_url(self):
     201        return interswitch_img_url(self)
    190202
    191203    def update(self):
     
    279291    product_id = PRODUCT_ID
    280292
     293    def interswitch_img_url(self):
     294        return interswitch_img_url(self)
     295
    281296    def update(self):
    282297        if self.context.p_state != 'unpaid':
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser_templates/applicant_goto_interswitch.pt

    r8441 r9464  
    7474  <input type="submit" class="btn" tal:attributes="value view/submit_button"/>
    7575
     76  <br /><br />
     77
     78  <img tal:attributes="src view/interswitch_img_url" />
     79
    7680</form>
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser_templates/student_goto_interswitch.pt

    r9392 r9464  
    7575  <input type="submit" class="btn" tal:attributes="value view/submit_button"/>
    7676
     77  <br /><br />
     78
     79  <img tal:attributes="src view/interswitch_img_url" />
     80
    7781</form>
Note: See TracChangeset for help on using the changeset viewer.