Changeset 648 for WAeUP_SRP/trunk
- Timestamp:
- 10 Oct 2006, 23:42:08 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r639 r648 351 351 app_doc = app.getContent() 352 352 app_doc.edit(mapping=da) 353 #wftool.doActionFor(app,'open',dest_container=app)353 wftool.doActionFor(app,'open',dest_container=app) 354 354 app.manage_setLocalRoles(sid, ['Owner',]) 355 355 student.getContent().createSubObjects() -
WAeUP_SRP/trunk/Widgets.py
r637 r648 368 368 err = "Student not Found in validate SC" 369 369 break 370 s_id = student.getId() 370 371 if ok == 2: 371 372 break -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r603 r648 51 51 info = context.getStudentInfo() 52 52 student = info['student'] 53 ## member_id = str(member)54 ## student = getattr(context.campus.students,member_id,)55 ## if context.portal_workflow.getInfoFor(student,56 ## 'review_state',57 ## None) == "created":58 53 if info['review_state'] == "created": 59 54 student.content_status_modify(workflow_action="enter_application_pin") -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r646 r648 24 24 member_id = str(member) 25 25 if student is None: 26 if context.isManager :26 if context.isManager(): 27 27 if context.portal_type == 'Student': 28 28 student_id = context.getId() … … 33 33 else: 34 34 student_id = student.getId() 35 res = context.portal_catalog( portal_type='Student',id=student_id)36 if not res :35 res = context.portal_catalog(id = student_id,portal_type='Student') 36 if not res or len(res) > 1: 37 37 return None 38 brain = res[ 0]38 brain = res[-1] 39 39 student = brain.getObject() 40 40 student_path = brain.getPath() 41 ##if student is None:42 ## students = getattr(context,'students',None)43 ## if students is None:44 ## students = getattr(context.campus,'students',None)45 ## student = getattr(students,member_id,None)46 ## if student is None:47 ## return None48 41 info['review_state'] = wf.getInfoFor(student,'review_state','keiner') 49 #info['wf_state'] = 'keiner'50 42 info['student'] = student 51 43 info['id'] = student.getId()
Note: See TracChangeset for help on using the changeset viewer.