Re: [Zope-dev] Strange bug(?) accessing File objects

2003-09-10 Thread Chris Withers
Bjorn Stabell wrote: When accessing File objects that are not accessible to Anonymous (HTTP and WebDAV View permissions not given), the Basic HTTP Auth window pops up repeatedly even after the user has logged in using the cookie crumbler method, and the user has permissions to view the file.

Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-10 Thread Chris Withers
Michael Long wrote: I have recently installed Zope 2.7.0-b2 on windows XP and am getting the same error message as 2.7.0-b1 when starting zope. Is this truly an error message or just informational? 2003-09-05T11:37:23 BLATHER(-100) ZODB Commiting subtransaction of size 5382 Traceback (most recent

[Zope-dev] Catalog performance

2003-09-10 Thread Nguyen Quan Son
Hi, I have a problem with performance and memory consumption when trying to do some statistics, using following code: ... docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.getObject() value = obj.attr ... With about 10.000 documents this Python

Re: [Zope-dev] Catalog performance

2003-09-10 Thread Romain Slootmaekers
Nguyen Quan Son wrote: Hi, I have a problem with performance and memory consumption when trying to do some statistics, using following code: ... docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.getObject() value = obj.attr ... With about 10.000

[Zope-dev] Re: Caching prob with AHCM and headers

2003-09-10 Thread Bjorn Stabell
Accelerated HTTP Caching Manager doesn't work out-of-the-box as this thread reported, but the thread had no conclusion: http://mail.zope.org/pipermail/zope/2003-April/134800.html http://mail.zope.org/pipermail/zope/2003-April/135059.html http://mail.zope.org/pipermail/zope/2003-April/135101.html

[Zope-dev] Re: PythonLibraries Product

2003-09-10 Thread Seb Bacon
Evan Simpson wrote: I'm thinking seriously about writing a Product to provide collections of Python functions defined by a single source text -- PythonLibraries. This would *not* be the same as Zope 3's persistent modules, although it would provide some of the same benefits. Here's the

[Zope-dev] Re: Catalog performance

2003-09-10 Thread Seb Bacon
Nguyen Quan Son wrote: Hi, I have a problem with performance and memory consumption when trying to do some statistics, using following code: ... docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.getObject() value = obj.attr ... With about 10.000

[Zope-dev] AW: Caching prob with AHCM and headers

2003-09-10 Thread Germer, Carsten
Well, sadly I didn't find the time to pursue the issue any further yet. We're kneedeep in work to get the system up and running and caching isn't top priority so far. I don't even know if someone patched the AHCM yet, simply haven't looked. But as someone suggested somewhere and you can see in

[Zope-dev] i18n:attributes DeprecationWarning on Zope head? Space separated attributes in i18n:attributes are deprecated (i18n:attributes=value title)

2003-09-10 Thread Chris Withers
The message makes sense, what should they be replaced with? [EMAIL PROTECTED] wrote: == Python Version:2.2.3 (#1, Jun 10 2003, 13:52:48) [GCC 2.95.2 2220 (Debian GNU/Linux)] Modules included: Zope (HEAD) Running unit tests

Re: [Zope-dev] Catalog performance

2003-09-10 Thread John Barratt
Max M wrote: Nguyen Quan Son wrote: Hi, I have a problem with performance and memory consumption when trying to do some statistics, using following code: ... docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.getObject() value = obj.attr

Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-10 Thread Michael Long
Try adding objects to your Zope, if that works and they stick around even after you restart Zope, then this isn't so much of a problem. However, it's nasty, and I suspect you find you may not be able to store objects to disk, so this does need fixing :-( Please file on

Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows -- SOLVED

2003-09-10 Thread Michael Long
I have found the offending code...he said sheepishly. In the __init__.py file I had the following: def initialize(context): ... import traceback; traceback.print_exc() instead of: def initialize(context): try: ... except: import traceback; traceback.print_exc()

Re: [Zope-dev] Re: PythonLibraries Product

2003-09-10 Thread Dario Lopez-Kästen
- Original Message - From: Evan Simpson [EMAIL PROTECTED] Both of these solutions suffer from the two or more objects to accomplish one task management problem. I usually combine the objects in a dedicated Folder, which is still a bit awkward, and doesn't solve everything. One

[Zope-dev] Re: Catalog performance

2003-09-10 Thread Simon Michael
John Barratt wrote: the problem (which seems likely) then you can ghostify the objects that were ghosts to begin with, and it will save memory (unless all those objects are already in cache). This is rather interesting, but I don't quite follow what's happening. If you can say a little more,

Re: [Zope-dev] PythonLibraries Product

2003-09-10 Thread Tres Seaver
Evan Simpson wrote: Seb Bacon wrote: Could you provide a brief summary of why this is better than a folder of python scripts? Perhaps a use case which illustrates the problems of the current way of doing things? It isn't *better* than a Folder of Scripts, it's *different* :-) I have

RE: [Zope-dev] AW: Caching prob with AHCM and headers

2003-09-10 Thread Bjorn Stabell
Carsten wrote: Well, sadly I didn't find the time to pursue the issue any further yet. We're kneedeep in work to get the system up and running and caching isn't top priority so far. I don't even know if someone patched the AHCM yet, simply haven't looked. But as someone suggested

Re: [Zope-dev] Re: Catalog performance

2003-09-10 Thread John Barratt
Simon Michael wrote: John Barratt wrote: the problem (which seems likely) then you can ghostify the objects that were ghosts to begin with, and it will save memory (unless all those objects are already in cache). This is rather interesting, but I don't quite follow what's happening. If

Re: [Zope-dev] Catalog performance - SOLVED

2003-09-10 Thread Nguyen Quan Son
I've added catalog metadata as Seb suggested and it works fine. Thank you very much. Nguyen Quan Son Nguyen Quan Son wrote: Hi, I have a problem with performance and memory consumption when trying to do some statistics, using following code: ... docs =

Re: [Zope-dev] AW: Caching prob with AHCM and headers

2003-09-10 Thread Jens Vagelpohl
I know, I was just trying to figure out how this was supposed to work. Currently setting Last-Modified seems to be the only way to get something cached in Apache; Expires alone is no good, and adding an Etag header doesn't seem to have any effect either. Maybe this should be classified as an

[Zope-dev] Re: Catalog performance

2003-09-10 Thread Simon Michael
John - your post and the links helped a lot. Thanks! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -