[Zope] Re: Subtranscations are hacky?
> "hasattr(...,'commit_sub')" and "hasattr(,'abort_sub')" > would be a better approach. I'd totally agree :-) Should I put that in the collector or do you want to? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Subtranscations are hacky?
Chris Withers writes: > > What about just putting a try: ... except > AttributeError around the commit_sub call in Transaction.py? What bad effects > would that have? That would probably not be a good idea as it could hide serious problems. ZCatalog has a similar "try: ... except" and in its case, many trivial bugs are hidden thereby. "hasattr(...,'commit_sub')" and "hasattr(,'abort_sub')" would be a better approach. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )