Getting ID of dtml-method
Is there a way to get the ID of a dtml method from with the given method itself? Also, is there a way to retrieve the ID of the calling method from inside of standard_html_header? For example: The method index_html calls standard_html_header and I want to be able to retrieve the id of index_html (i.e. "index_html") from inside of standard_html_header. Any ideas? Thanks, Kevin
<dtml-var document_id> hth, -Casey On Monday 09 September 2002 11:58 am, Kevin Carlson wrote:
Is there a way to get the ID of a dtml method from with the given method itself? Also, is there a way to retrieve the ID of the calling method from inside of standard_html_header? For example:
The method index_html calls standard_html_header and I want to be able to retrieve the id of index_html (i.e. "index_html") from inside of standard_html_header.
Any ideas?
Thanks,
Kevin
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Kevin Carlson writes:
Is there a way to get the ID of a dtml method from with the given method itself? Yes, via "document_id".
Also, is there a way to retrieve the ID of the calling method from inside of standard_html_header? Not in general, but if it happens to be the object called through the Web, it will be possible:
The object called through the Web is accessible as "REQUEST['PUBLISHED']". You can use its "getId()" method. Dieter
participants (3)
-
Casey Duncan -
Dieter Maurer -
Kevin Carlson