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
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
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
+---[ 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
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
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
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
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
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