[Zope] restrictedTraverse([''])

Hong Yuan hongyuan at homemaster.cn
Tue May 24 04:14:53 EDT 2005


I happened to find that obj.restrictedTraverse(['']) returns the 
application object, instead of the object itself. This is quite 
unexpected, as both obj.restrictedTraverse('') and 
obj.restrictedTraverse([]) returns the object itself.

Is this a bug or a feature?

-- 
HONG Yuan
Homemaster Trading Co., Ltd.
No. 601, Bldg. 41, 288 Shuangyang Rd. (N)
Shanghai 200433, P.R.C.
Tel: +86 21 55056553
Fax: +86 21 55067325
E-mail: hongyuan at homemaster.cn



More information about the Zope mailing list