[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.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: Log message for revision 87393: 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. Make debug mode setting explicit in a config.py. Currently it is bound to Python's __debug__, which is False when run with -O and otherwise True. 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. I think looking for an environment variable would be quite reasonable instead. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIVAmv+gerLs4ltQ4RAkMnAKChysbw0FboPfMPtSe0H2eGtGF7DgCgvK1Q XXC2UpX5L7KQ7HeGdUNr7Us= =Vofy -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 )
[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.
Hanno Schlichting wrote: Log message for revision 87393: 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. Make debug mode setting explicit in a config.py. Currently it is bound to Python's __debug__, which is False when run with -O and otherwise True. I'm not sure it's a good idea to litter the file system with these files; they'll probably confuse most users. At the same time, as far as I can tell, we do need to actually save the generated Python-code to disk to get proper debugging. Can we write them to a temporary directory? If we assign a filename based on the hash of the contents, the space occupied should be fairly limited. \malthe ___ 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 )
[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 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. \malthe ___ 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 )