Changeset 1911 for WAeUP_SRP


Ignore:
Timestamp:
17 Jun 2007, 05:26:26 (18 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1910 r1911  
    923923            new_state = f2t[pt]['wf_transition_returning']
    924924            sub_obj = getattr(student_obj,f2t[pt]['id'],None)
    925             if new_state != "remain":
     925            if sub_obj and new_state != "remain":
    926926                try:
    927927                    self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj)
    928928                except:
    929                     logger.info('%s, wf transition %s of %s failed' % (sid,new_state,sub_obj.id))
     929                    #logger.info('%s, wf transition %s of %s failed' % (sid,new_state,sub_obj.id))
    930930                    pass
    931931        wfaction = 'return'
     
    935935            any_change = True
    936936        except:
    937             logger.info('%s, wf transition failed' % sid)
     937            logger.info('%s, wf transition failed, old state = %s' % (sid,res[0].review_state))
    938938            pass
    939939        # end inclusion
Note: See TracChangeset for help on using the changeset viewer.