Re: [Zope] restrictedTraverse([''])

2005-05-24 Thread Hong Yuan
Thanks very much for the clarification. Lennart Regebro wrote: On 5/24/05, Hong Yuan <[EMAIL PROTECTED]> wrote: 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

Re: [Zope] restrictedTraverse([''])

2005-05-24 Thread Lennart Regebro
On 5/24/05, Hong Yuan <[EMAIL PROTECTED]> wrote: > 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

[Zope] restrictedTraverse([''])

2005-05-24 Thread Hong Yuan
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

Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Andrew Kenneth Milton
+---[ Dennis Nichols ]-- | At 9/15/00 10:05 AM, Chris Withers wrote: | >So: | > | > | > | >will work as I expect it to? | | Well, I don't know what you expect :-) When I try to save such a construct | with the handy-dandy Change button I get | | Document Template Parse E

Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Dennis Nichols
At 9/15/00 10:05 AM, Chris Withers wrote: >So: > > > >will work as I expect it to? Well, I don't know what you expect :-) When I try to save such a construct with the handy-dandy Change button I get Document Template Parse Error Invalid attribute name, "absolute_url", for tag ... -- Dennis N

Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Steve Alexander
Dennis Nichols wrote: > > At 9/15/00 10:05 AM, Chris Withers wrote: > >So: > > > > > > > >will work as I expect it to? > > Well, I don't know what you expect :-) When I try to save such a construct > with the handy-dandy Change button I get > > Document Template Parse Error > Invalid attribute

Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Steve Alexander
Chris Withers wrote: > > PS: Has your patch to allow &dtl.url-/folder/object; made any progress > into the Zope core yet? That's part of another proposal now. I really don't like having '/' characters in SGML entities. I have this heretical view that DTML should try to conform to SGML where poss

[Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Chris Withers
Steve Alexander wrote: > > > You can use restrictedTraverse('slash/delimited/path') > > > > AFAIK, that's not available in DTML... > > > > Am I wrong? > > You're wrong. Yay! :-) I guess that takes away a lot of the need for &dtml-/folder/object; So: will work as I expect it to? cool, Chri

[Zope] restrictedTraverse

2000-09-15 Thread Chris Withers
Steve Alexander wrote: > You can use restrictedTraverse('slash/delimited/path') AFAIK, that's not available in DTML... Am I wrong? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts