Changeset 9464 for main/waeup.kwarapoly
- Timestamp:
- 30 Oct 2012, 09:27:19 (12 years ago)
- 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 22 22 from xml.dom.minidom import parseString 23 23 import grok 24 from zope.component import getUtility 24 from zope.interface import Interface 25 from zope.component import getUtility, queryAdapter 25 26 from waeup.kofa.browser.layout import KofaPage, UtilityView 26 27 from waeup.kofa.accesscodes import create_accesscode … … 128 129 return True, msg, log 129 130 131 def 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 130 139 class InterswitchActionButtonStudent(APABStudent): 131 140 grok.order(1) … … 188 197 product_id = PRODUCT_ID 189 198 mac = '737396C271FB8E2BA1A612A942267553E16373658A5F83D90DAFFBB806C16E9E6284006C06CEFFB55768004179D7BC01CD237CCE6314B938A5A5D9F49369DE5A' 199 200 def interswitch_img_url(self): 201 return interswitch_img_url(self) 190 202 191 203 def update(self): … … 279 291 product_id = PRODUCT_ID 280 292 293 def interswitch_img_url(self): 294 return interswitch_img_url(self) 295 281 296 def update(self): 282 297 if self.context.p_state != 'unpaid': -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser_templates/applicant_goto_interswitch.pt
r8441 r9464 74 74 <input type="submit" class="btn" tal:attributes="value view/submit_button"/> 75 75 76 <br /><br /> 77 78 <img tal:attributes="src view/interswitch_img_url" /> 79 76 80 </form> -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser_templates/student_goto_interswitch.pt
r9392 r9464 75 75 <input type="submit" class="btn" tal:attributes="value view/submit_button"/> 76 76 77 <br /><br /> 78 79 <img tal:attributes="src view/interswitch_img_url" /> 80 77 81 </form>
Note: See TracChangeset for help on using the changeset viewer.