[Zope-dev] ZPatterns: commitSubtransaction() gives AttributeError on commit_sub

R. David Murray bitz@bitdance.com
Wed, 21 Feb 2001 16:13:10 -0500 (EST)


I have the following form action pythonscript:

req = context.REQUEST
context.propertysheets.info.manage_changeProperties(longdesc=req.form['longdesc'])
context.commitSubtransaction()
req.RESPONSE.redirect(req['URL1']+'/edit_longdescForm')

context is a DataSkin instance.  When I submit the form, I get an
Attribute Error on commit_sub (traceback below in case it helps
anyone).  As far as I can see from the ZPattern's source, I'm making
the call correctly and it is an appropriate call.  Any clues?

This is Zope 2.3.1b1 and Steve's convenience release of ZPatterns.

--RDM

Traceback:

  File /usr/local/zope/Zope231b1/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /usr/local/zope/Zope231b1/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/zope/Zope231b1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: tales)
  File /usr/local/zope/Zope231b1/lib/python/ZPublisher/Publish.py, line 175, in publish
  File /usr/local/zope/Zope231b1/lib/python/Zope/__init__.py, line 235, in commit
  File /usr/local/zope/Zope231b1/lib/python/ZODB/Transaction.py, line 276, in commit
AttributeError: (see above)