[Zope] Python script calling environment

p.t. p.training@tin.it
Sun, 14 Jul 2002 17:26:42 +0200


I have this situation:

root
    |
    |- actions (Folder)
    |     |- action_1 (Script)
    |
    |- activity (Folder)
          |- aScript (Script) => running this script
          |- actions (Folder)
                |- action_2 (Script)

If in aScript I call container.actions.action_1(), testing the script I get:

Error Type: AttributeError
Error Value: action_1

I expected that, if "actions.action_1" was not found in "activity", it was 
searched in the parent folder of "activity", and so on up to the top of the 
tree.

Is this a simple limitation rule, or there is a deeper reason?
As an alternative, is there a way to "inherit" in "activity/actions" the 
scripts contained in "root/activity"?

	p.t.