Re: [Zope] Newbie question(s)

2000-11-13 Thread Rik Hoekstra
"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

RE: [Zope] Newbie question(s)

2000-11-12 Thread Max M
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

RE: [Zope] Newbie question(s)

2000-11-12 Thread 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 (untested):

Re: [Zope] Newbie question(s)

2000-11-12 Thread Morten W. Petersen
[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

RE: [Zope] Newbie question(s)

2000-11-12 Thread Max M
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