[Zope-dev] logrotation/logreopening in ZTK-based applications

2010-11-09 Thread Christian Theune
Hi, Zope 2 provides a command to ask it to re-open its log files thus supporting outside logrotation. We have a ZTK-based app and found that the server provides neither signal handling to rotate logs nor a zopectl command. Does anybody remember wether this was ever built? I see an old discuss

Re: [Zope-dev] zope.interface memory optimization

2010-11-09 Thread Brian Sutherland
On Wed, Nov 10, 2010 at 12:14:54AM +0200, Marius Gedminas wrote: > On Tue, Nov 09, 2010 at 05:04:11PM +0100, Brian Sutherland wrote: > > > Might be worth timing a slots-based implementation. > > > > I just tried to add slots to Element, Attribute and Method classes, but > > it there's too many tes

Re: [Zope-dev] zope.interface memory optimization

2010-11-09 Thread Marius Gedminas
On Tue, Nov 09, 2010 at 05:04:11PM +0100, Brian Sutherland wrote: > > Might be worth timing a slots-based implementation. > > I just tried to add slots to Element, Attribute and Method classes, but > it there's too many tests that break to benchmark it running the ZTK > tests. > > On the micro be

Re: [Zope-dev] SVN: zope.interface/branches/jinty-mem/src/zope/interface/interface.py Improve CPU performance of previous memory optimization

2010-11-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/09/2010 02:47 PM, Laurence Rowe wrote: > On 9 November 2010 18:35, Tres Seaver wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 11/09/2010 08:26 AM, Wichert Akkerman wrote: >>> On 11/9/10 14:22 , Brian Sutherland wrote: L

Re: [Zope-dev] SVN: zope.interface/branches/jinty-mem/src/zope/interface/interface.py Improve CPU performance of previous memory optimization

2010-11-09 Thread Laurence Rowe
On 9 November 2010 18:35, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/09/2010 08:26 AM, Wichert Akkerman wrote: >> On 11/9/10 14:22 , Brian Sutherland wrote: >>> Log message for revision 118295: >>>    Improve CPU performance of previous memory optimization >>> >

Re: [Zope-dev] SVN: zope.interface/branches/jinty-mem/src/zope/interface/interface.py Improve CPU performance of previous memory optimization

2010-11-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/09/2010 08:26 AM, Wichert Akkerman wrote: > On 11/9/10 14:22 , Brian Sutherland wrote: >> Log message for revision 118295: >>Improve CPU performance of previous memory optimization >> >> Changed: >>U zope.interface/branches/jinty-mem/sr

Re: [Zope-dev] zope.interface memory optimization

2010-11-09 Thread Brian Sutherland
On Tue, Nov 09, 2010 at 03:49:38PM +0100, Charlie Clark wrote: > Am 08.11.2010, 15:35 Uhr, schrieb Brian Sutherland > : > > > If no-one replies, I'll assume that 3% is just not enough to be > > interesting and do nothing;) > > Hi Brian, > > thanks for sharing this but it looks to me like a mic

Re: [Zope-dev] an Interface expressing "a list of generator function"

2010-11-09 Thread Jean-Daniel
The end of the last message was not finished... Ideally, here is (maybe) what I wish I could write: > """ from zope.interface import IList, IGenerator, implements, requires def make_generator_functions(): implements(IList(IGenerator)) [...] def stack_assumption(gen_funcs): requires(

Re: [Zope-dev] an Interface expressing "a list of generator function"

2010-11-09 Thread Jean-Daniel
> > What exactly are you hoping to accomplish? > In brief, I wish there were a concise and clear way to express that an object implements a "list of generator functions", in the context of CS students learning the concept of interface. I am writing an article on a sudoku solver for an audience of

Re: [Zope-dev] zope.interface memory optimization

2010-11-09 Thread Brian Sutherland
On Tue, Nov 09, 2010 at 01:21:00AM +0200, Marius Gedminas wrote: > On Mon, Nov 08, 2010 at 03:35:09PM +0100, Brian Sutherland wrote: > > I've committed 2 patches to a "jinty-mem" branch of zope.interface. > > Together these patches reduce the startup memory use of my ZTK based > > application by 3%

Re: [Zope-dev] zope.interface memory optimization

2010-11-09 Thread Charlie Clark
Am 08.11.2010, 15:35 Uhr, schrieb Brian Sutherland : > If no-one replies, I'll assume that 3% is just not enough to be > interesting and do nothing;) Hi Brian, thanks for sharing this but it looks to me like a micro-optimisation that isn't really worth going against best practice for - by us

[Zope-dev] Zope Tests: 63 OK, 7 Failed

2010-11-09 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Nov 8 13:00:00 2010 UTC to Tue Nov 9 13:00:00 2010 UTC. There were 70 messages: 6 from Zope Tests, 4 from buildbot at pov.lt, 19 from buildbot at winbot.zope.org, 8 from ccomb at free.fr, 33 from jdriessen at thehealthagency.com. Test fai

Re: [Zope-dev] an Interface expressing "a list of generator function"

2010-11-09 Thread Jim Fulton
On Tue, Nov 9, 2010 at 2:58 AM, Jean-Daniel wrote: > Ok, > If I attach an item_type to the the list, I do not think I will able to use > the native Python list, and should use a subclass instead. It is a bit > heavyweight, especially when the intent of the use of the interface was > documentation.