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

Ian Sealy Ian.Sealy@bristol.ac.uk
Tue, 27 Feb 2001 13:00:33 +0000 (GMT)


Dear Brian,

> > req = context.REQUEST
> > context.propertysheets.info.manage_changeProperties(longdesc=req.f
> > orm['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:
> 
> > AttributeError: (see above)
> 
> I believe we've tracked this down and fixed it properly - the 
> fix will be in 2.3.1 b2, but I've a attached a copy of the 
> updated Transaction.py that you can drop into lib/python/ZODB, 
> then restart. It would be great if you get a chance to confirm 
> the fix and let me know how it goes...
> 
> Note I've cc'ed a few other folks who have run into this 
> specific problem - if any of you can spare a few moments 
> to verify the fix and let me know if you still see any 
> problems, I'd really appreciate it.

That sorted everything for me. Thanks very much.

Just for info, I'm still using Zope 2.2.5 and just dropping the updated
Transaction.py into that worked fine.

Thanks again.

Cheers,
Ian