[Zope] Newbie: Python:Path Troubles

Dieter Maurer dieter@handshake.de
Fri, 12 Jul 2002 21:04:08 +0200


Rebecca.R.Hepper@seagate.com writes:
 > When I try to use restrictedTraverse or unrestrictedTraverse in my python
 > script I always get the error:
 > 
 > Error Type:  NameError
 > Error Value:  global name 'restrictedTraverse' is not defined

"restrictedTraverse" is a method not a build in name.

In ZPT, you use is (e.g.) "python: here.restrictedTraverse(path)".


Dieter