-----Original Message----- From: Ethan Fremen [mailto:mindlace@majordomo.net] Sent: Friday, September 24, 1999 6:36 AM To: Robert Leftwich Cc: Zope Mailing List (E-mail) Subject: Re: [Zope] Name of DTML file
Robert Leftwich wrote:
Is there a way to find the filename of a DTML file that is used in a product via HTMLFile() ? I have tried various things, name(), _['__name__'], etc without success.
If these are DTML Documents, then id() should give you the filename. If they are methods, I'm not sure what you should do.
An HTMLFile object does store it's filename because it re-reads the file when Zope is restarted (if Zope is in debug mode '-D' it rereads the file on every hit, this is very useful). myHTMLFile.__name__ is the filename. -Michel
-- ~mindlace
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )