[Zope] Re: (un)restrictedTraverse bug

Maik Jablonski maik.jablonski@uni-bielefeld.de
Thu, 30 Jan 2003 20:14:32 +0100


Dragos Chirila wrote:
> In the root i have a folder called 'xx yy'
> In a dtml MEthod i have the following line : <dtml-var 
> "restrictedTraverse('xx yy').id">
>  
> I get an error :
>  
> Traceback (innermost last):
> 492, in notFoundError
> NotFound: (see above)
> WHY IS THAT ???????????

You should not use any whitespace in Zope-Ids. Think of all Zope-Objects 
as Python-Objects which are mapped to Urls. Python doesn't like any 
whitespace in attributes etc... Urls shouldn't contain any whitespace in 
my opinion! That's really nasty windowish-style...

-maik