I'm working some ZClass constructors, and hoped to generate LOG messages at various points to help me debug various namespace issues. I was hopeing the following syntax would work: <dtml-call "_.zLOG.LOG('ZODB',100,'This is it!')"> No dice though - I guess the zLOG module isn't imported in the necessary spots. Can anyone think of a simple way of getting this going, or do I need to write a product to implement a <dtml-log> tag? ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
Stuart 'Zen' Bishop wrote:
I'm working some ZClass constructors, and hoped to generate LOG messages at various points to help me debug various namespace issues. I was hopeing the following syntax would work:
<dtml-call "_.zLOG.LOG('ZODB',100,'This is it!')">
No dice though - I guess the zLOG module isn't imported in the necessary spots. Can anyone think of a simple way of getting this going, or do I need to write a product to implement a <dtml-log> tag?
I'm not sure that straight up importing the whole package into the _ namespace is a good idea. Or at least I haven't thought about it nearly enough to feel good about it. You could do the tag, that's not a bad idea actually and would only take an hour or two to write. Maybe I'll take a stab at it if you don't want to (but i'd prefer you did). Proably easiest would be to just write an external method that imports zLOG. -Michel
On Sun, 10 Oct 1999, Michel Pelletier wrote:
You could do the tag, that's not a bad idea actually and would only take an hour or two to write. Maybe I'll take a stab at it if you don't want to (but i'd prefer you did).
I've uploaded a product to zope.org to do this (currently awaiting review). ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
participants (2)
-
Michel Pelletier -
Stuart 'Zen' Bishop