[Zope] context in a Product's python code (not Python Script)
Jo Meder
jo@meder.de
Thu, 5 Dec 2002 08:32:07 +0100
Am 05.12.2002, 05:34 Uhr
schrab John Hohm <jhohm@acm.org>:
> You seem to be saying that luck is required for a method to get proper
> acquisition information. How can this be? Aren't methods acquired all over
> the place? What alternatives to methods exist for defining objects that can
> be acquired?
This is far from efficient, but if you're really desperate you can try
the following approach (untested code, may contain errors):
myurl=self.absolute_url()
mypath=myurl[len(Request.get("URL0"))+1:]
thisisme=self.restrictedTraverse(mypath)
Jo.
--
Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt