Changeset 2653 for WAeUP_SRP


Ignore:
Timestamp:
14 Nov 2007, 17:49:39 (17 years ago)
Author:
Henrik Bettermann
Message:

rename sessions_voc.py

Location:
WAeUP_SRP
Files:
1 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/getSessionId.py

    r2454 r2653  
    1010# $Id$
    1111"""
    12 return the Session Id
     12return the Portal Session Id
    1313"""
    14 
    15 # must be changed in 2007/2008; should return only the last two digits
    16 
    17 #import DateTime
    18 #now = DateTime.DateTime()
    19 #if now.month() > 11:
    20 #    s = "%s" % now.year()
    21 #else:
    22 #    s = "%s" % (now.year() - 1)
    23 #return s
    2414
    2515session_id = context.portal_properties.session[2:4]
  • WAeUP_SRP/base/skins/waeup_epayment/getSchoolFee.py

    r2534 r2653  
    105105         }
    106106
    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_data
    114 # return fee_2_data
    115107d = {}
    116108if brain.mode.endswith('_ft'):
     
    120112    d['new'] = session_fees[brain.session][f]
    121113    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)
    123115if pt_fees.has_key(brain.course):
    124116    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),
    126118                                                         d['description'])
    127119return d
  • WAeUP_SRP/fceokene/profiles/default/vocabularies/sessions.xml

    r1728 r2653  
    55 <property name="title_msgid"></property>
    66 <property name="description"></property>
    7  <property name="get_vocabulary_method">sessions_voc</property>
     7 <property name="get_vocabulary_method">getSessionsVoc</property>
    88 <property name="add_empty_key">False</property>
    99 <property name="empty_key_pos">first</property>
Note: See TracChangeset for help on using the changeset viewer.