"Bowyer, Alex" wrote:
Hi,
I have what I'm sure is a very simple question about Zope programming style:
I want to count how many objects are contained in the current container
object and then do something with that value, but I can't do the bit I need
to do at the point of reading the
From: Bowyer, Alex
I want to count how many objects are contained in the current container
object and then do something with that value, but I can't do the bit I
need to do at the point of reading the count variable because I am in
the wrong namespace.
I would try and do it like this
I want to count how many objects are contained in the
current container
object and then do something with that value, but I can't do
the bit I
need to do at the point of reading the count variable
because I am in
the wrong namespace.
I would try and do it like this (untested):
[Alex Bowyer]
| My query is really more general though, that was just an example, I need to
| know what the generally accepted method is for transferring values through
| the code (i.e between namespaces)
Unless I've misunderstood your problem, wouldn't dtml-let do the trick?
(See DTML manual
From: Bowyer, Alex
My query is really more general though, that was just an example,
I need to know what the generally accepted method is for
transferring values through the code (i.e between namespaces)
I do believe that our ugly friend REQUEST.set() is the way to go here. I
cannot remember