[Zope-dev] [Problem] unordered entries in Z2.log

2004-03-22 Thread Dieter Maurer
Apparently, entries in Zope's Z2.log are not chronologically (by causuality) ordered. In my concrete case, a form was POSTed that resulted in a redirected GET request. The entries in Z2.log, however, were in the order: GET ... 200 POST ... 302 This can be confusing (altough, I do not

[Zope-dev] Bug in ZTUtil.Batch solved

2004-03-22 Thread AP Meyer
Hi Zopers It seems that there is a bug in ZTUtil.Batch: when the batch should be the length of the batch and there are exactly as many orphans as there would fit on one page the length of the batch becomes size instead of size+orphans. Here are the numbers: no of batchesstartend

Re: [Zope-dev] Bug in ZTUtil.Batch solved

2004-03-22 Thread Andreas Jung
Please submit the patch (+ unittest) to the bug collector. Otherwise it might get lost. -aj --On Montag, 22. März 2004 13:09 Uhr +0100 AP Meyer [EMAIL PROTECTED] wrote: Hi Zopers It seems that there is a bug in ZTUtil.Batch: when the batch should be the length of the batch and there are

Re: [Zope-dev] Bug in ZTUtil.Batch solved

2004-03-22 Thread Jens Vagelpohl
Please post this in the Collector at http://zope.org/Collectors/Zope jens On Mar 22, 2004, at 7:09, AP Meyer wrote: Hi Zopers It seems that there is a bug in ZTUtil.Batch: when the batch should be the length of the batch and there are exactly as many orphans as there would fit on one page

[Zope-dev] Parameter referencing bug in Python Scripts?

2004-03-22 Thread Brian Brinegar
Hmmm, There seems to be a bug in the way parameters are referenced in python scripts. I have a simple script that has a list as a default parameter. The script then appends something to this list and returns the list. Each time I call the script the list gets to be one element longer. Here is

[Zope-dev] Re: Parameter referencing bug in Python Scripts?

2004-03-22 Thread Tres Seaver
Brian Brinegar wrote: Hmmm, There seems to be a bug in the way parameters are referenced in python scripts. I have a simple script that has a list as a default parameter. The script then appends something to this list and returns the list. Each time I call the script the list gets to be one

Re: [Zope-dev] Zope 2.7 memory behaviour

2004-03-22 Thread Stefan Doerig
Arndt Droullier wrote: Hello, Hello Arndt I'm trying to find a memory leak in a zope appliction and started to test how zope memory consume behaves basically under load. I'm having exactly the same problem, but under linux using Python 2.3.3 and Zope 2.7.0. First time I noticed this behaving

Re: [Zope-dev] TALES context

2004-03-22 Thread Chris Withers
(please stop posting in HTML) Garito wrote: I try to create another context object for TALES like 'container' or 'here' Is there any mechanism to create these? Like PUT_factory for FTP/WevDav or meta_types for the products What extra context are are you looking to add? Chris -- Simplistix -

[Zope-dev] asyncore - twisted

2004-03-22 Thread Duncan M. McGreggor
The Zope2 sprint has been focusing on HTTPServer, and one of the interesting ideas that came up was to replace asyncore with twisted. Several people have worked on this in the past, and we were hoping that you could share your experiences, warnings, intuitions, and hopefully even code :-) We look

AW: [Zope-dev] Zope 2.7 memory behaviour

2004-03-22 Thread Arndt Droullier
Your debug information looks like severel objects referenced by acquisition remain in memory. You can be sure this is the case if you in the management interface to Control Panel/Database Management/main/Flush Cache and remove all objects from cache. If the reference count doesn´t change then

Re: [Zope-dev] Zope 2.7 memory behaviour

2004-03-22 Thread Dieter Maurer
Stefan Doerig wrote at 2004-3-22 17:46 +0100: ... The debug information looks rather strange to me, but I don't know anything about internals of Zope. Anyway I have here reference counts going up fast. Don't know whether this is normal or not. Class March 22, 2004 5:26 pm March 22, 2004

[Zope-dev] Re: [ZODB-Dev] [Problem] strange state after SIGSEGV

2004-03-22 Thread Dieter Maurer
Sorry, the message was intended for zope-dev. I have accidentally sent it to zodb-dev. Redirected... Shane Hathaway wrote at 2004-3-22 11:03 -0500: Dieter Maurer wrote: This problem report is for Zope 2.7.0, Python 2.3.3, Linux 2.4.19. After an application provoked SIGSEGV (caused by a C

Re: [Zope-dev] asyncore - twisted

2004-03-22 Thread Jamie Heilman
Duncan M. McGreggor wrote: The Zope2 sprint has been focusing on HTTPServer, and one of the interesting ideas that came up was to replace asyncore with twisted. Several people have worked on this in the past, and we were hoping that you could share your experiences, warnings, intuitions, and

[Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-22 Thread Jamie Heilman
So... remember way back when Brian warned about the binding breakage due to the improved security checks? It just bit me in a way I didn't forsee. I forgot that PageTemplates use bindings too, which means those changes affect more than just PythonScripts they affect Products that use

[Zope-dev] ...but I want to access 'a particular tuple' in that context!

2004-03-22 Thread Jamie Heilman
Try this in a PythonScript: d = {1:2} for t in d.iteritems(): pass Annoyingly, it raises Unauthorized: You are not allowed to access 'a particular tuple' in this context Is there a reason for this, or is it just part of AccessControl/RestrictedPython that hasn't been fleshed out yet? --