RE: [Zope] zclass add method -- how to get at properties?
restrictedTraverse('/Control_Panel/Products/ZClassTest/ZCTest/propertysheets/common/PS').getProperty('toks')
Thank you Dieter, that is it exactly. I have not used this restrictedTraverse before, but I am trying it in other areas now. Once I get an object (a DTML Method) how do I make it render normally? I do <dtml-var "restrictedTraverse('/path/to/product/method')"> but the html is all coming out entity encoded. ie: <HTML> etc. Thanks for your help! _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Lee Harr writes:
Once I get an object (a DTML Method) how do I make it render normally? You apply the namespace's "render" method to it....
<dtml-var "_.render(object)"> works for all kinds of objects (with the exception of a bug that may raise an "AttributeError: __call__" exception). If you know, your object is a DTML object, you can also call it with two parameters, usually "_.None" and "_". Dieter
participants (2)
-
Dieter Maurer -
Lee Harr