[Zope] Acquired namespaces within a python product class method?

Max M maxmcorp@worldonline.dk
Sat, 14 Jul 2001 20:38:42 +0200


> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> sean.upton@uniontrib.com

> 	def method1(self):
> 		return method2()
> 
> How would I get method1(), which resides is acquired, to use the current
> namespace when calling method2 from a URL like
> /sitefolder/subfolder/method1?  I've tried a few things, but I am a bit
> confused...

If I understand your problem correctly you should just write::

    def method1(self):
        return self.subfolder.method2()

regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act