yuppie wrote at 2005-4-4 20:59 +0200:
...
2.) I prefer to see the correct import in each file and to use utils just for the fallback.
But, then you get a nasty "try: ... except:" in hundred of files rather than just a single one.
Eight files in CMF, not hundreds of files for 'import transaction'.
It's a different story for 'import Zope2'. All unit test files would need a nasty try/except and 'import Zope' makes much less noise than 'get_transaction()'.
So I'll leave them as they are, at least for now.
Cheers, Yuppie
_______________________________________________ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests