Steve Alexander [[EMAIL PROTECTED]] wrote:
Christopher Petrilli wrote:
SMOC :-)
You're in the South Michigan Orienteering Club?
http://www.angelfire.com/mi/SMOC/
Oh sorry, old reference... SMOC = Simple Matter of Code :)
Chris
--
| Christopher Petrilli
| [EMAIL PROTECTED]
Hi
I love the orphan feature in dtml-in - it works really well and demonstrates
the maturity of Zope Zen!
When batching results as a beginner in Zope - you tend to think that Zope
has a bug when not returning your results consistently (size=3 so why is it
giving me 4!), (some of my staff have
I have two nice methods. One of them (methodA) is called via the web.
These belong to one class; classA.
class classA:
"doc string"
def methodA(self):
"doc string"
objects = self.methodB(self)
objects.reverse()
attrib = ''
for object in
Erik,
You're returning a mutable object from methodB. You should either return
an immutable object (such as a tuple or a string), or return a *copy* of
your mutable object.
some_list.reverse() reverses the list in-place. That's why you're seeing
the strange reversal results you report.
The
I wasn't reading the code clearly the first time around.
By far the simplest place to return copied results from methodB is to
change the last line to
return objects[:]
Erik Enge wrote:
def methodB(self, object, skip=[], stop=[], objects=[]):
"doc string"