[Zope] accessing other objects

jochen jochen@teg-me.de
24 Jul 2002 16:04:33 +0200


> 
> context.addImage(params)
> 

Sorry, seems like the description of my problem wasn't as clear as I
thought ;-)
The above solution works for a PythonScript Object inside Zope. What I
was looking for was to do the same thing from inside a PythonProduct.
After looking into the ZopeSources I found what I was looking for.
To acces objects in the context from inside a PythonProduct class do the
following:

from Shared.DC.Scripts.Script import BindingsUI

class <classname>(BindingsUI):

def <somemethod>(self):
	context=self.getBindingAssignments().getAssignedName('name_context',None)

Anyway, thanks for the fast response.