[Zope] python function to know the total number of records in a catalog object

2007-06-24 Thread kamal hamzat
Hi, I need a python script or function to get the total number of records in a zcatalog. Thanks Kamal___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mai

Re: [Zope] python function to know the total number of records in a catalog object

2007-06-24 Thread Andreas Jung
--On 24. Juni 2007 15:08:22 +0100 kamal hamzat <[EMAIL PROTECTED]> wrote: Hi, I need a python script or function to get the total number of records in a zcatalog. len(catalog). -aj pgp0NXchjuLox.pgp Description: PGP signature ___ Zope maillist

[Zope] temp_folder not MountTemporaryFolder?

2007-06-24 Thread Manuel Vázquez Acosta
Hi all, I have been digging into Session Management in Zope, because is causing a little overhead. We have develop a Plone Application, which must respond to 30 concurrent user every 12 seconds, we have setup CacheFu and Squid for this. We have used OpenSTA to stress test the application. When

Re: [Zope] temp_folder not MountTemporaryFolder?

2007-06-24 Thread Chris McDonough
/temp_folder is a "mount point" (see your zope.conf file). Whether or not you put a session data container inside of a temp folder, you may get better conflict-related performance out of "faster", a drop-in replacement for the stock Zope sessioning machinery... see http://www.agendaless.co

Re: [Zope] temp_folder not MountTemporaryFolder?

2007-06-24 Thread Chris McDonough
On Jun 24, 2007, at 9:31 PM, Manuel Vázquez Acosta wrote: Let me see if I got this right: According to ZODB.Mount.MountPoint: mount points are Zope objects that, when traversed, accesses a different database. You got it. Do they report themselves as the container-class defined in zope.conf

Re: [Zope] temp_folder not MountTemporaryFolder?

2007-06-24 Thread Chris McDonough
Note also that a patch like this one (against the current Zope 2 trunk, you may need to change it based on whichever version of Zope you're using) might shed more light on where your conflict errors are coming from: Index: lib/python/Zope2/App/startup.py

Re: [Zope] z3c.form 1.3.0, z3c.formui 1.0.1, and z3c.formdemo 1.1.0 released!

2007-06-24 Thread Stephan Richter
On Saturday 23 June 2007 01:44, David Pratt wrote: > Hi Stephan. This is some really awesome work and some great new examples >   as well. There is more to explore and to anticipate with ajax - it is > all really very excellent. Thanks for looking at the packages seriously. BTW, over the weekend I

Re: [Zope] z3c.form 1.3.0, z3c.formui 1.0.1, and z3c.formdemo 1.1.0 released!

2007-06-24 Thread Jeff Kowalczyk
On Sun, 24 Jun 2007 22:42:35 -0400, Stephan Richter wrote: > Yes, thanks for the report. Cheeseshop was slow on Friday, so I could not try > the package. I just released formdemo 1.1.1, which fixes the problem. Thanks for the z3c.form package and the demo. There is an optionalChoiceField additio

[Zope] List of attributes

2007-06-24 Thread Garito
Hi all! Is it possible to use tal:attributes with a dictionary or something like this? I would like to change/add attributes to a HTML object in a list or a dict like: http://blogs.sistes.net/Garito', 'target': '_blank', 'myCustomAttribute': 'Value1'} http://www.sistes.net"; tal:attributes='atr