In a class of my product I declare the following... index_html = PageTemplateFile('www/Customer/index_html', globals()) What path would I use to display the id of my object in that index_html? <span tal:replace="?????/id"/> -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com
Edward Muller wrote:
In a class of my product I declare the following...
index_html = PageTemplateFile('www/Customer/index_html', globals())
What path would I use to display the id of my object in that index_html?
<span tal:replace="?????/id"/>
<span tal:replace="here/id"/> or <span tal:replace="here/getId"/> regards Max M
Max M wrote:
In a class of my product I declare the following...
index_html = PageTemplateFile('www/Customer/index_html', globals())
What path would I use to display the id of my object in that index_html?
<span tal:replace="here/id"/>
That will work, but in general you should use 'container' when referring to attributes of your object: <span tal:replace="container/id" /> 'here' allows for acquisition, which you probably don't want in this case. Cheers, Evan @ 4-am
I tried that, but it didn't work. Then I realized (after a nights sleep) that I hadn't set self.id in the class. Thanks. On Tue, 2003-03-11 at 01:02, Max M wrote:
Edward Muller wrote:
In a class of my product I declare the following...
index_html = PageTemplateFile('www/Customer/index_html', globals())
What path would I use to display the id of my object in that index_html?
<span tal:replace="?????/id"/>
<span tal:replace="here/id"/>
or
<span tal:replace="here/getId"/>
regards Max M -- Edward Muller
Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com
participants (3)
-
Edward Muller -
Evan Simpson -
Max M