Changeset 3339 for WAeUP_SRP/base/skins
- Timestamp:
- 16 Mar 2008, 08:38:39 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_academics/getCertificatesVoc.py
r3254 r3339 1 ##parameters=key=None 1 ##parameters=key=None 2 2 # $Id$ 3 3 """ … … 6 6 """ 7 7 if key is None: 8 res = context.portal_catalog.search({'meta_type': "Certificate"}) 8 res = context.portal_catalog.search({'meta_type': "Certificate"}) 9 9 return [(d.getId,d.Title,) for d in res] 10 10 res = context.portal_catalog.search({'meta_type': "Certificate", 'id': key}) 11 11 if res: 12 return [-1].Title12 return res[0].Title 13 13 raise KeyError -
WAeUP_SRP/base/skins/waeup_academics/getDepartmentsVoc.py
r3254 r3339 6 6 """ 7 7 if key is None: 8 res = context.portal_catalog.search({'meta_type': "Department"}) 8 res = context.portal_catalog.search({'meta_type': "Department"}) 9 9 return [(d.getId(),d.Title,) for d in res] 10 10 res = context.portal_catalog.search({'meta_type': "Department", 'id': key}) 11 11 if res: 12 return res[ -1].Title12 return res[0].Title 13 13 14 14 raise KeyError -
WAeUP_SRP/base/skins/waeup_academics/getFacultiesVoc.py
r3269 r3339 1 ##parameters=key=None 1 ##parameters=key=None 2 2 # $Id$ 3 3 """ … … 6 6 """ 7 7 if key is None: 8 res = context.portal_catalog.search({'meta_type': "Faculty"}) 8 res = context.portal_catalog.search({'meta_type': "Faculty"}) 9 9 return [(d.getId,d.Title,) for d in res] 10 10 res = context.portal_catalog.search({'meta_type': "Faculty", 'id': key}) 11 11 if res: 12 return [-1].Title12 return res[0].Title 13 13 raise KeyError -
WAeUP_SRP/base/skins/waeup_student/admitStudents.py
r2727 r3339 52 52 context.waeup_tool.doCommit() 53 53 logger.info("Committing %s transactions, total %s" % (commit_after,count)) 54 #cocount += 155 #if cocount > 1:56 #break54 cocount += 1 55 if cocount > 1: 56 break 57 57 brain = aq_applicants(Eq('reg_no',reg_no))[0] 58 58 #logger.info("start creating objects of student %s" % (brain.reg_no))
Note: See TracChangeset for help on using the changeset viewer.