Referencing objects not in same folder
Hello all, I'm sure this must be a simple one, but I can't see the answer: I have made a python script that returns a list of strings for a selection box. I go to the 'Properties' tab of the folder containing the script and add a name, value and type of 'Selection'. The selection box works OK. But what Value do I use when accessing it from a different folder? eg: root --- A -- script | -- B -- (want to access script from here) Tried container/A/script and ../A/script, but keep on getting 'No request variable' error. Any ideas? Andy (Zope new(ish)bie) __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
Andy Bramah wrote:
I have made a python script that returns a list of strings for a selection box. I go to the 'Properties' tab of the folder containing the script and add a name, value and type of 'Selection'. The selection box works OK.
But what Value do I use when accessing it from a different folder? eg:
root --- A -- script | -- B -- (want to access script from here)
Tried container/A/script and ../A/script, but keep on getting 'No request variable' error.
Any ideas?
You can't do that. The value of a select-variable MUST be an ID of a script which returns a list. You have to use acquisition to solve your problem: root --- script | -- A -- | -- B -- (want to access script from here) -mj
participants (2)
-
Andy Bramah -
Maik Jablonski