Re: [Zope-dev] More ZCatalog Stuff.

2001-02-25 Thread Steve Alexander
Christopher Petrilli wrote: > > SMOC :-) You're in the South Michigan Orienteering Club? http://www.angelfire.com/mi/SMOC/ You think we should implement indexes using the Shell Multivariable Optimising Controller? http://www.yokogawa.com.sg/Public/Solution/SMOC.asp Or some Simulation

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 j

[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 obj

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 e

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" >

Re: [Zope-dev] More ZCatalog Stuff.

2001-02-25 Thread Toby Dickenson
On Sat, 24 Feb 2001 21:44:36 -0500, Christopher Petrilli <[EMAIL PROTECTED]> wrote: >Chris Withers [[EMAIL PROTECTED]] wrote: >> "Michael R. Bernstein" wrote: >> > >> > Hmm. this seems like there ought to be a checkbox next to >> > the 'Add Index' form field labeled 'index numbers?'. Or >> > may