Changeset 1490 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 25 Feb 2007, 00:32:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py
r1415 r1490 10 10 # $Id$ 11 11 """ 12 return Info about the currentStudent12 return the review_state of the Student 13 13 """ 14 14 try: 15 15 from Products.AdvancedQuery import Eq, Between, Le,In 16 evalAQ= context.portal_catalog.evalAdvancedQuery16 aq_portal = context.portal_catalog.evalAdvancedQuery 17 17 except: 18 evalAdvancedQuery= None18 aq_portal = None 19 19 student_id = context.getStudentId() 20 #res = context.portal_catalog(id = student_id,portal_type='Student')21 20 query = Eq('id',student_id) 22 res = evalAQ(query)23 if not res: # or len(res) > 1:21 res = aq_portal(query) 22 if not res: 24 23 return None 25 return res[ -1].review_state24 return res[0].review_state -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r1483 r1490 14 14 request = context.REQUEST 15 15 16 wf = context.portal_workflow16 wftool = context.portal_workflow 17 17 path_info = request.get('PATH_INFO').split('/') 18 18 … … 47 47 #review_state = wftool.getInfoFor(context,'review_state',None) 48 48 #if review_state != 'content_addable': 49 # context.portal_workflow.doActionFor(context,'close_for_edit') 50 49 # wftool.doActionFor(context,'close_for_edit') 50 student_review_state = context.getStudentReviewState() 51 may_register = student_review_state in ('shool_fee_payed',) 51 52 #levels.sort() 52 #if not levels :53 #if not levels and may_register: 53 54 # context.invokeFactory('StudentStudyLevel',"%s" % current_level) 54 55 # level = getattr(context,"%s" % current_level)
Note: See TracChangeset for help on using the changeset viewer.