Changeset 1963
- Timestamp:
- 26 Jun 2007, 05:47:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1921 r1963 927 927 928 928 # included only to change wf state from admitted to returning 929 new_state = f2t[pt]['wf_transition_returning'] 930 sub_obj = getattr(student_obj,f2t[pt]['id'],None) 931 if sub_obj and new_state != "remain": 932 try: 933 self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj) 934 except: 935 #logger.info('%s, wf transition %s of %s failed' % (sid,new_state,sub_obj.id)) 936 pass 937 wfaction = 'return' 938 try: 939 self.portal_workflow.doActionFor(student_obj,wfaction) 940 logger.info('%s, wf state changed' % sid) 941 any_change = True 942 except: 943 logger.info('%s, wf transition failed, old state = %s' % (sid,res[0].review_state)) 944 pass 929 if res[0].review_state == 'admitted' 930 new_state = f2t[pt]['wf_transition_returning'] 931 sub_obj = getattr(student_obj,f2t[pt]['id'],None) 932 if sub_obj and new_state != "remain": 933 try: 934 self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj) 935 except: 936 #logger.info('%s, wf transition %s of %s failed' % (sid,new_state,sub_obj.id)) 937 pass 938 if res[0].review_state == 'admitted' 939 wfaction = 'return' 940 try: 941 self.portal_workflow.doActionFor(student_obj,wfaction) 942 logger.info('%s, wf state changed' % sid) 943 any_change = True 944 except: 945 logger.info('%s, wf transition failed, old state = %s' % (sid,res[0].review_state)) 946 pass 945 947 # end inclusion 946 948
Note: See TracChangeset for help on using the changeset viewer.