-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Malthe Borch wrote: > Tres Seaver wrote: >> I don't think I would this to __debug__: I wouldn't want to pay a price >> either at startup time or (worse) at render time for information I don't >> need or want. > > Is ``devmode`` available on Zope 2? That might be a good flag to control > this.
As I said before, I think something specific to the z3c.pt package would be sensible. E.g.: debug_source = os.environ.get('Z3C_PT_DEBUG_SOURCE', 'No') debug_source = debug_source .lower() in ('yes', 'true', on) or some such. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIVXh8+gerLs4ltQ4RAij6AKCq2y7JLBoRpk7U8lKnYjSTmKD9RACfWNA5 G9dfwmxI7nOn3J3MHbw9wwg= =S5WL -----END PGP SIGNATURE----- _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )