Re: [Zope-dev] RFC: adding support for testing from bare setuptools

2008-09-18 Thread Marius Gedminas
On Thu, Sep 18, 2008 at 12:42:33AM +0200, Philipp von Weitershausen wrote: Marius Gedminas wrote: On Wed, Sep 17, 2008 at 12:52:49PM -0400, Tres Seaver wrote: $ ../bin/python setup.py test # [2] # Runs egg_info, installs regular and testing dependencies, and # runs all unit

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-18 Thread Brian Sutherland
On Thu, Sep 18, 2008 at 07:08:56AM +0200, Dieter Maurer wrote: Brian Sutherland wrote at 2008-9-17 12:33 +0200: On Tue, Sep 16, 2008 at 02:01:07PM +0100, Laurence Rowe wrote: Brian Sutherland wrote: Hi, I've recently seen a situation where zope.sqlalchemy locked up the transaction

[Zope-dev] Zope Tests: 2 OK, 3 Failed

2008-09-18 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Sep 17 11:00:00 2008 UTC to Thu Sep 18 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Wed Sep 17 20:54:36 EDT

Re: [Zope-dev] RFC: adding support for testing from bare setuptools

2008-09-18 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marius Gedminas wrote: On Thu, Sep 18, 2008 at 12:42:33AM +0200, Philipp von Weitershausen wrote: Marius Gedminas wrote: On Wed, Sep 17, 2008 at 12:52:49PM -0400, Tres Seaver wrote: $ ../bin/python setup.py test # [2] # Runs egg_info,

[Zope-dev] zc.dict.OrderedDict efficiency

2008-09-18 Thread Thomas Lotze
The documentation of OrderedDict from zc.dict 1.2.1 states that the current implementation is inefficient for large collections because it uses a PersistentList to store the order. It also says that a BList which would be preferrable is not used as it is not yet released. - What's the state of

Re: [Zope-dev] zc.dict.OrderedDict efficiency

2008-09-18 Thread Benji York
On Thu, Sep 18, 2008 at 3:52 PM, Thomas Lotze [EMAIL PROTECTED] wrote: The documentation of OrderedDict from zc.dict 1.2.1 states that the current implementation is inefficient for large collections because it uses a PersistentList to store the order. It also says that a BList which would be

[Zope-dev] z3c.dav issues

2008-09-18 Thread Jayarajan Jn
Hi friends, i am doing some prototypes to try webDAV with zope3. I am using z3c.extfile to store files. I tried the zope.app.dav that is coming along with z3 distribution. it works fine for zope.app.file and zope.app.folder. it partialy works with z3c.extfile too. ie, i can download extfiles

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Nico Grubert
The span renders PIL.Image.Image instance at 0x23b97500. How can I show the image? Call its tag method. span tal:replace=structure item/tag / Hi Paul, how is the susi going? ;-) I tried span tal:replace=structure item/tag / but I get the following error:

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Andrew Milton
+---[ Nico Grubert ]-- |The span renders PIL.Image.Image instance at 0x23b97500. |How can I show the image? | | Call its tag method. | | span tal:replace=structure item/tag / | | | Hi Paul, | | how is the susi going? ;-) | | I tried span

Re: [Zope] how suppress http based authentication window of zope

2008-09-18 Thread vaibhav pol
Hi , Thank you for replay . yes I know that product is using cookie based authentication.I want to know that is any work go around to support zope cookie based or form based authentication. I also I used CookieCrubmbler for Cookie based authentication. It Modify the request

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Nico Grubert
You can't do this What you need to do is associate the image with a URL so it gets generated when the browser processes the img tag.. UNLESS it's very small in which case you can use the src=... attribute to contain the data. So a PIL image should be returned by a script or external

Re: [Zope] Displaying PIL Images in Zope Templates

2008-09-18 Thread Nico Grubert
Instead of generating the image on the call to your ZPT you form an img src=/some/url/that/makes/my/image?foo=barbaz=bat e.g. in order to generate the right image. Got it. The magic is not to call the external method by container.createThumbnail() but use absolute URL to the external method.

Re: [Zope] how suppress http based authentication window of zope

2008-09-18 Thread Josef Meile
Hi, CookieCrumbler worked fine for me on the past. The only thing that's up-to-you is to customize the login form if it doesn't fit your needs. Perhaps the only issues I see on CookieCrumbler are: 1) Even if you redirect your login_form to https, the came_from variable, which is set when you

Re: [Zope] how suppress http based authentication window of zope

2008-09-18 Thread Josef Meile
Hi, Thank you for replay . yes I know that product is using cookie based authentication.I want to know that is any work go around to support zope cookie based or form based authentication. Well, I think it won't be included to zope source code. Why to do it? There is already two

Re: [Zope] how suppress http based authentication window of zope

2008-09-18 Thread vaibhav pol
On Thu, Sep 18, 2008 at 1:59 PM, Josef Meile [EMAIL PROTECTED] wrote: Hi, Thank you for replay . yes I know that product is using cookie based authentication.I want to know that is any work go around to support zope cookie based or form based authentication. Well, I think it

Re: [Zope] how suppress http based authentication window of zope

2008-09-18 Thread Josef Meile
Yes you are correct it reset the authenticate cookies but from logout from zope it call zmi_logout beacuse of that again login window prompt I just want to redirect to the login page and also i want user must be logut . As per my knowledge It not possible because session is

Re: [Zope] How to access the content of a file in a test suite in a portable way

2008-09-18 Thread Israel Saeta PĂ©rez
On Thu, Sep 18, 2008 at 4:16 AM, Marco Bizzarri [EMAIL PROTECTED] wrote: Thanks, Peter; but that does not work inside a test case run as: python tests/testMyTestSuite.py I'm using at the moment: def product_prefix(self): return sys.modules['Products.MyProduct'].__path__[0]

Re: [Zope] [ZODB-Dev] Zope memory usage

2008-09-18 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2008-9-17 20:05 -0400: Alan, I'm replying to the Zope list also, because this issue is perhaps related to other components there. I'm running into the same situation: The python process running my Plone site is steadyly growing. I'm using Zope2.9.8-final (the one

Re: [Zope] Zope error getting Plone running on HP UX

2008-09-18 Thread sjcurt02
sjcurt02 wrote: import distutils distutils.sysconfig.get_config_vars()['CONFIG_ARGS'] Traceback (most recent call last): File stdin, line 1, in ? AttributeError: 'module' object has no attribute 'sysconfig' snip I finally understand what was meant. This worked for me: from distutils

Re: [Zope] Zope error getting Plone running on HP UX

2008-09-18 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sjcurt02 wrote: sjcurt02 wrote: import distutils distutils.sysconfig.get_config_vars()['CONFIG_ARGS'] Traceback (most recent call last): File stdin, line 1, in ? AttributeError: 'module' object has no attribute 'sysconfig' snip I finally

[Zope] z3c.dav issues

2008-09-18 Thread Jayarajan Jn
Hi friends, i am doing some prototypes to try webDAV with zope3. I am using z3c.extfile to store files. I tried the zope.app.dav that is coming along with z3 distribution. it works fine for zope.app.file and zope.app.folder. it partialy works with z3c.extfile too. ie, i can download extfiles

[Zope-DB] Zope DOracle2 ans daemontools

2008-09-18 Thread Nicolas LAURANCE
Hi all, I have a zope (and plone) that uses DOracle2 DA. Everything works fine, but if I monitor the zope process with daemontools, then suddenly all Oracle database connections fail. If I run Zope as a daemon, the connection is OK If I run runzope at console, the connection is OK If I run