[Zope] Subtranscations are hacky?

Chris Withers chrisw@nipltd.com
Sun, 28 Jan 2001 16:27:54 +0000


Dieter Maurer wrote:
> 
> Ian Sealy writes:
>  > I've finally managed to replicate the bug consistently, so I've just
>  > submitted it to the Collector:
>  >
>  >      http://classic.zope.org:8080/Collector/1895/view
> Very good!
> 
> Apparently, someone at DC decided that subtransaction are
> good, too, to upload images. Maybe, this was not so good an
> idea. While for ZCatalog, subtransactions can be disabled,
> this apparently is not the case for image uploads.

Having browsed through Image.py, the problematic bits lvie in File.py, so both
file and imaeg uploads are affected :-(

Also, it doesn't look like subtransactions are done properly, it looks like a
real hack by the comments.

This could end up being a real pain :-S I wonder what effort it would take to
sort out subtransactions? What about just putting a try: ... except
AttributeError around the commit_sub call in Transaction.py? What bad effects
would that have?

cheers,

Chris