I installed the latest HotFix (http://www.zope.org/Products/Zope/Hotfix_2001-08-04/README.txt) and now some DTML doesn't work when it used to work. This used to work: <dtml-with "Control_Panel.Products.GlasMasteri"> <dtml-with "PARENTS[0]"> <dtml-var extended_addform> </dtml-with> </dtml-with> Now I get Error Type: NameError Error Value: global name 'Control_Panel' is not defined I basically want to use methods and objects from the folder: MyProduct (or "GlasMasteri" like in the above example). How should I do this? Zope 2.4.0 on Python 2.1.1
[answering myself after 1 minute] Here's the trick to get back the old functionality <dtml-with "PARENTS[-1].Control_Panel.Products.GlasMasteri"> <dtml-with "PARENTS[0]"> <dtml-var extended_addform> </dtml-with> </dtml-with> Sorry for the noice
I installed the latest HotFix (http://www.zope.org/Products/Zope/Hotfix_2001-08-04/README.txt) and now some DTML doesn't work when it used to work.
This used to work: <dtml-with "Control_Panel.Products.GlasMasteri"> <dtml-with "PARENTS[0]"> <dtml-var extended_addform> </dtml-with> </dtml-with>
Now I get Error Type: NameError Error Value: global name 'Control_Panel' is not defined
I basically want to use methods and objects from the folder: MyProduct (or "GlasMasteri" like in the above example). How should I do this?
Zope 2.4.0 on Python 2.1.1
_______________________________________________ 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 )
Peter Bengtsson writes:
<dtml-with "Control_Panel.Products.GlasMasteri"> Does not work <dtml-with "PARENTS[-1].Control_Panel.Products.GlasMasteri"> Does work In my view, this indicates that there is still something seriously wrong. Either both should work, or both should not (due to security concerns).
Dieter
Peter Bengtsson writes:
<dtml-with "Control_Panel.Products.GlasMasteri"> Does not work <dtml-with "PARENTS[-1].Control_Panel.Products.GlasMasteri"> Does work In my view, this indicates that there is still something seriously wrong. Either both should work, or both should not (due to security concerns).
This is of course in an instance of "GlasMasteri". Does that change anything? Haven't tried it outside of that instance though.
participants (2)
-
Dieter Maurer -
Peter Bengtsson