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)


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to