[Zope] context in a Product's python code (not Python Script)

Jo Meder jo@meder.de
Thu, 5 Dec 2002 08:36:38 +0100


Am 05.12.2002, 08:32 Uhr
	schrab Jo Meder <jo@meder.de>:

I hate to follow up to myself, but here you go: first error found.
Sorry.
 
> myurl=self.absolute_url()
> mypath=myurl[len(Request.get("URL0"))+1:]

Should be mypath=myurl[len(Request.get("BASE0"))+1:]

> thisisme=self.restrictedTraverse(mypath)

Sorry again.

	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