Changeset 1905


Ignore:
Timestamp:
16 Jun 2007, 08:04:27 (18 years ago)
Author:
Henrik Bettermann
Message:

change also state of subobjects
(please check)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1904 r1905  
    919919                        sub_doc.edit(mapping = d)
    920920
     921
     922        # included only to change wf state from admitted to returning
     923            new_state = f2t[pt]['wf_transition_returning']
     924            if new_state != "remain":
     925                try:
     926                    self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj)
     927                except:
     928                    pass
    921929        wfaction = 'return'
    922         try: 
     930        try:
    923931            self.portal_workflow.doActionFor(student_obj,wfaction)
    924932            logger.info('%s, wf state changed' % sid)
     
    926934        except:
    927935            pass
     936        # end inclusion
     937
    928938
    929939        if any_change:
     
    932942            return sid,'not modified'
    933943    ###)
    934    
    935    
     944
     945
    936946    security.declareProtected(ModifyPortalContent,"importData")###(
    937947    def importData(self,filename,name,edit=False):
Note: See TracChangeset for help on using the changeset viewer.