Changeset 1415 for WAeUP_SRP/trunk/skins
- Timestamp:
- 14 Feb 2007, 12:54:55 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py
r1315 r1415 16 16 d = {} 17 17 for f in fields: 18 d[f] = getattr(brain,f,' --')18 d[f] = getattr(brain,f,'') 19 19 if f == "sex": 20 20 if d[f]: -
WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py
r1161 r1415 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= student=None, with_items=None7 ##parameters= 8 8 ##title= 9 9 ## … … 12 12 return Info about the current Student 13 13 """ 14 try: 15 from Products.AdvancedQuery import Eq, Between, Le,In 16 evalAQ = context.portal_catalog.evalAdvancedQuery 17 except: 18 evalAdvancedQuery = None 14 19 student_id = context.getStudentId() 15 res = context.portal_catalog(id = student_id,portal_type='Student') 20 #res = context.portal_catalog(id = student_id,portal_type='Student') 21 query = Eq('id',student_id) 22 res = evalAQ(query) 16 23 if not res:# or len(res) > 1: 17 24 return None
Note: See TracChangeset for help on using the changeset viewer.