[Zope-dev] REQUEST contains wrong list.index ???

2001-04-26 Thread Robert Rottermann
Good morning,I came accross something I do not understand:In a form I have list. The list items are set with an option value the sequence-indexlike so: dtml-in getSubprojects dtml-let curElem=sequence-item OPTION value=dtml-var "curElem['Code']" dtml-var "curElem['Name']" /OPTION

[Zope-dev] zunit 0.2 comments

2001-04-26 Thread Simon Michael
Hi Lalo, thanks for your work on ZUnit. I have just been playing with 0.2. To get it working in my zope account at Codeit, I moved Hiper from Shared/ to Products/ and changed the import statements. I also needed to make some changes of this kind: #manage_RunTestsForm =

Re: [Zope-dev] deepcopy of file object

2001-04-26 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: ... copying ZODB objects ... I use the following function: def _clone(o): clone an object. Currently, a deep copy is used; maybe we should use a shallow copy instead. c= cPickle.loads(cPickle.dumps(o.aq_base,1)) c._p_oid= None

Re: [Zope-dev] 27 million objects.

2001-04-26 Thread Erik Enge
On Thu, 5 Apr 2001, Michael R. Bernstein wrote: I'm trying to find out of there is a point where you start getting non-linear performance penalties for additional objects (storing, retreiving, or indexing). I've just finished adding a somewhat small number of objects: 5000. For every 1000th

Re: [Zope-dev] 27 million objects.

2001-04-26 Thread Chris McDonough
Erik Enge wrote: On Thu, 5 Apr 2001, Michael R. Bernstein wrote: I'm trying to find out of there is a point where you start getting non-linear performance penalties for additional objects (storing, retreiving, or indexing). I've just finished adding a somewhat small number of

[Zope-dev] reading the entire DB

2001-04-26 Thread nw_moriarty Last Name
Jim Were you able to run the script I sent previously? I have attached it again. It demonstrates that the entire DB is read each time an item is read. Nigel --== Sent via Deja.com ==-- http://www.deja.com/ nikeDB.py

Re: [Zope-dev] 27 million objects.

2001-04-26 Thread Dieter Maurer
Erik Enge writes: I've just finished adding a somewhat small number of objects: 5000. For every 1000th object, the Data.fs seemed to grow to about 900MB; that's when things started going slow, in a non-linear fashion (this is more a hunch than something I payed much attention to). I

Re: [Zope-dev] reading the entire DB

2001-04-26 Thread Michel Pelletier
On Thu, 26 Apr 2001, nw_moriarty Last Name wrote: Jim Were you able to run the script I sent previously? I have attached it again. It demonstrates that the entire DB is read each time an item is read. It does this because your script creates and destroys the database connection every

Re: [Zope-dev] zunit 0.2 comments

2001-04-26 Thread Lalo Martins
On Thu, Apr 26, 2001 at 01:21:01AM -0700, Simon Michael wrote: Hi Lalo, thanks for your work on ZUnit. I have just been playing with 0.2. Thank you for your feedback. To get it working in my zope account at Codeit, I moved Hiper from Shared/ to Products/ and changed the import

[Zope-dev] url traversal

2001-04-26 Thread Brett Carter
I have the classic problem of wanting my method 'foo' to work like: http://localhost/foo/a/b/c where a,b,c are parameters passed to foo. I've found some info in the mailing list archives, namely: http://lists.zope.org/pipermail/zope-dev/2000-May/005197.html Has the 'Traversal' interface been

[Zope-dev] [ANN] Zope Developer's Guide Rough Draft

2001-04-26 Thread Amos Latteier
I'm happy to announce that we've finished the rough draft of the Zope Developer's Guide http://www.zope.org/Documentation/ZDG There are still plenty of blemishes and problems, but there's a lot of useful material there. There are now two new chapters - one on acquisition and one on testing

Re: [Zope-dev] [ANN] Zope Developer's Guide Rough Draft

2001-04-26 Thread Amos Latteier
Amos Latteier wrote: P.S. If you'd like to get involved see the project page http://www.zope.org/DocProject/Dev/Guide Whoops. That URL should be http://www.zope.org/DocProjects/DevGuide -Amos -- Amos Latteier mailto:[EMAIL PROTECTED] Digital Creations

[Zope-dev] Publishable Objects...

2001-04-26 Thread Brett Carter
What does it take to make an object publishable from an ExternalMethod? I.E., I have a class (see bottom of message) that does some url traversal trickery, that works from a python product. Shouldn't I be able to just stick it in an External method, and just return it, i.e.: def returnme(self):

Re: [Zope-dev] Publishable Objects...

2001-04-26 Thread Amos Latteier
Brett Carter wrote: What does it take to make an object publishable from an ExternalMethod? I.E., I have a class (see bottom of message) that does some url traversal trickery, that works from a python product. Shouldn't I be able to just stick it in an External method, and just return it,

Re: [Zope-dev] url traversal

2001-04-26 Thread Danny William Adair
Hi Brett! Have you taken a look at the PathHandler Product? http://www.zope.org/Members/NIP/PathHandler/ This looks like an out-of-the-box solution for you. hth, Danny -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Brett Carter Gesendet: