The Doctor What writes:
Using context.this().id, self.this().id, m_self.this().id all get me
the same things:
Folder, Zope, and my method. None give me the DTML Document
foo_html.
If it is indeed a DTML Document, then "this()" should reference
this document. If it is a DTML Method, then
I got a reply from someone working on it. It seems the answer is
that it doesn't exist yet, pending a change in ZOPE itself.
So I have to pass it in:
dtml-var expr="breadcrumbs(this())"
Not a big deal, but annoying.
I'll make the source available as soon as I coble together a
view-source
Evan Simpson writes:
From: The Doctor What [EMAIL PROTECTED]
Using context.this().id, self.this().id, m_self.this().id
all get me
the same things:
Folder, Zope, and my method. None give me the DTML
Document
foo_html.
This would seem to be an important thing.
The only
From: The Doctor What [EMAIL PROTECTED]
Using context.this().id, self.this().id, m_self.this().id
all get me
the same things:
Folder, Zope, and my method. None give me the DTML
Document
foo_html.
This would seem to be an important thing.
The only information about your caller that you can
The Doctor What writes:
...
Now here is my next problem.
Using context.REQUEST.PARENTS doesn't give me the DTML Document that
called me (so to speak).
I have:
/test/new/foo_html
My PARENTS shows Zope, Test, and New, but doesn't show foo_html.
"PARENTS" contain the objects
* Dieter Maurer ([EMAIL PROTECTED]) [001112 17:12]:
The Doctor What writes:
...
Now here is my next problem.
Using context.REQUEST.PARENTS doesn't give me the DTML Document that
called me (so to speak).
I have:
/test/new/foo_html
My PARENTS shows Zope, Test, and
Okay, I figured that bit of braindeadness out (I just use a range
that goes backwards, no .reverse() so everything is left as is.
Now here is my next problem.
Using context.REQUEST.PARENTS doesn't give me the DTML Document that
called me (so to speak).
I have:
/test/new/foo_html
My PARENTS
I cannot slice context.REQUEST.PARENTS
The reason I want to do this is to travel up the URL tree for a
breadcrumb navigation do-hicky.
I want to slice it so I can make a copy because if I just do
...reverse() on it, I screw up everything afterwards.
It says I'm unauthorized (Guarded.py