## Script (Python) "getSchoolFee" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=faculty=None, session=None ##title= ## # $Id: getSchoolFee.py 1994 2007-07-06 07:54:34Z joachim $ """ return SchoolFee """ fee1 = ("ART", "SSC", "LAW", "EDU", ) session_fees = {'99': ('22200','23700'), '00': ('22200','23700'), '01': ('22200','23700'), '02': ('22200','23700'), '03': ('22200','23700'), '04': ('22200','23700'), '05': ('22200','23700'), '06': ('22200','23700'), } #sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session) # sessionstring = "School Fee for Session %s" % context.sessions_voc(key=session) # fee_1_data = ("22200",sessionstring) # fee_2_data = ("23700",sessionstring) # if faculty in fee1: # return fee_1_data # return fee_2_data f = 1 if faculty in fee1: f = 0 return (session_fees[session][f], "School Fee for Session %s" % context.sessions_voc(key=session))