Re: [Zope-dev] More ZCatalog Stuff.

2001-02-25 Thread Christopher Petrilli
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]

[Zope-dev] default value for orphan

2001-02-25 Thread Guy Redwood
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

[Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Erik Enge
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

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Steve Alexander
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

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Steve Alexander
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"