[Zope-dev] Re: SVN: z3c.pt/trunk/ In debug mode the actual source code for file templates is written out to a <filename>.source file, to make it easier to inspect it.

Tres Seaver tseaver at palladion.com
Sun Jun 15 16:15:56 EDT 2008


-----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          tseaver at palladion.com
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-----



More information about the Zope-Dev mailing list