- Timestamp:
- 14 Nov 2007, 17:49:39 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 1 added
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/getSessionId.py
r2454 r2653 10 10 # $Id$ 11 11 """ 12 return the Session Id12 return the Portal Session Id 13 13 """ 14 15 # must be changed in 2007/2008; should return only the last two digits16 17 #import DateTime18 #now = DateTime.DateTime()19 #if now.month() > 11:20 # s = "%s" % now.year()21 #else:22 # s = "%s" % (now.year() - 1)23 #return s24 14 25 15 session_id = context.portal_properties.session[2:4] -
WAeUP_SRP/base/skins/waeup_epayment/getSchoolFee.py
r2534 r2653 105 105 } 106 106 107 #sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session)108 # sessionstring = "School Fee for Session %s" % context.sessions_voc(key=session)109 # fee_1_data = ("22200",sessionstring)110 # fee_2_data = ("23700",sessionstring)111 112 # if faculty in fee1:113 # return fee_1_data114 # return fee_2_data115 107 d = {} 116 108 if brain.mode.endswith('_ft'): … … 120 112 d['new'] = session_fees[brain.session][f] 121 113 d['returning'] = 'not set' 122 d['description'] = "School Fee for Session %s" % context. sessions_voc(key=brain.session)114 d['description'] = "School Fee for Session %s" % context.getSessionsVoc(key=brain.session) 123 115 if pt_fees.has_key(brain.course): 124 116 d = pt_fees[brain.course] 125 d['description'] = "School Fee for Session %s, %s" % (context. sessions_voc(key=brain.session),117 d['description'] = "School Fee for Session %s, %s" % (context.getSessionsVoc(key=brain.session), 126 118 d['description']) 127 119 return d -
WAeUP_SRP/fceokene/profiles/default/vocabularies/sessions.xml
r1728 r2653 5 5 <property name="title_msgid"></property> 6 6 <property name="description"></property> 7 <property name="get_vocabulary_method"> sessions_voc</property>7 <property name="get_vocabulary_method">getSessionsVoc</property> 8 8 <property name="add_empty_key">False</property> 9 9 <property name="empty_key_pos">first</property>
Note: See TracChangeset for help on using the changeset viewer.