Changeset 1490 for WAeUP_SRP/trunk
- Timestamp:
- 25 Feb 2007, 00:32:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/doc/srp_documentation.mm
r1482 r1490 104 104 <node CREATED="1170083649773" ID="Freemind_Link_329050457" LINK="../profiles/default/schemas/student_personal.xml" MODIFIED="1170959011444" TEXT="Schema: student_personal"/> 105 105 </node> 106 <node CREATED="1170082392807" FOLDED="true"ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">106 <node CREATED="1170082392807" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course"> 107 107 <node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/> 108 108 <node CREATED="1170930264337" ID="Freemind_Link_1384807180" LINK="../profiles/default/types/StudentStudyCourse.xml" MODIFIED="1172159914623" TEXT="Type: StudentStudyCourse"/> -
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) -
WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelForNewStudents.py
r1486 r1490 47 47 ##res = aq_portal(query) 48 48 query = Eq('level','100') 49 res = aq_students(query) 49 #res = aq_students(query) 50 res = students_cat(level='100') 50 51 #set_trace() 51 52 count = 0 53 count_full = 0 52 54 commit_count = 0 53 55 logger.info("started for %s students" % len(res)) 54 56 for sbrain in res: 57 #count_full += 1 58 #rwrite("%s: %s %s %s <br />" % (count_full,sbrain.id,sbrain.entry_mode,sbrain.level)) 55 59 student_obj = getattr(students,sbrain.id) 56 60 if sbrain.entry_mode == "":
Note: See TracChangeset for help on using the changeset viewer.