Changeset 2899


Ignore:
Timestamp:
9 Dec 2007, 21:15:26 (17 years ago)
Author:
joachim
Message:

use self.aq_parent for workflow actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Payment.py

    r2898 r2899  
    109109        d['date'] = getattr(doc,'date',None)
    110110       
    111         review_state = wftool.getInfoFor(self,'review_state',None)
     111        review_state = wftool.getInfoFor(self.aq_parent,'review_state',None)
    112112        if review_state == "closed":
    113             wftool.doActionFor(self,'open')
     113            wftool.doActionFor(self.aq_parent,'open')
    114114        doc.edit(mapping = d)
    115115        if review_state == "closed":
    116             wftool.doActionFor(self,'close')
     116            wftool.doActionFor(self.aq_parent,'close')
    117117
    118118InitializeClass(Payment)
Note: See TracChangeset for help on using the changeset viewer.