Changeset 2874


Ignore:
Timestamp:
7 Dec 2007, 08:03:12 (17 years ago)
Author:
joachim
Message:

fix for #430

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Payment.py

    r2859 r2874  
    3636        logger = logging.getLogger('PaymentsFolder.updatePayments')
    3737        #import pdb;pdb.set_trace()
     38        wftool = self.portal_workflow
    3839        for payment in self.aq_parent.objectValues():
    3940            d = {}
     
    7576            # msg = " ".join(["%s: %s" % (key,value) for key,value in d.items()])
    7677            # logger.info(msg)
     78           
     79            review_state = wftool.getInfoFor(payment,'review_state',None)
     80            if review_state == "closed":
     81                wftool.doActionFor(payment,'open')
    7782            doc.edit(mapping = d)
     83            if review_state == "closed":
     84                wftool.doActionFor(payment,'close')
    7885
    7986InitializeClass(PaymentsFolder)
Note: See TracChangeset for help on using the changeset viewer.