Changeset 1990
- Timestamp:
- 5 Jul 2007, 11:34:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1987 r1990 842 842 if mapping.get('sex'): 843 843 d['jamb_sex'] = 'F' 844 transition = mapping.get('reg_transition','admit') 845 if transition not in ('admit','return'): 846 transition = 'admit' 844 847 for pt in f2t.keys(): 845 848 student_obj.invokeFactory(pt,f2t[pt]['id']) … … 855 858 d[zu] = mapping[von] 856 859 sub_doc.edit(mapping = d) 857 transition = mapping.get('reg_transition','admitted') 858 if transition not in ('admitted','returning'): 859 transition = 'admitted' 860 860 861 #import pdb;pdb.set_trace() 861 862 new_state = f2t[pt]['wf_transition_%(transition)s' % vars()] 862 863 if new_state != "remain": 863 864 self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj) 864 wfaction = 'admit' 865 self.portal_workflow.doActionFor(student_obj,wfaction) 865 self.portal_workflow.doActionFor(student_obj,transition) 866 866 student_obj.manage_setLocalRoles(sid, ['Owner',]) 867 867 return sid,'' … … 901 901 if res[0].review_state != 'admitted': 902 902 return '%s' % res[0].id ,"student is not in state admitted" 903 # end inclusion 903 # end inclusion 904 904 905 905 sid = res[0].id
Note: See TracChangeset for help on using the changeset viewer.