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

2003-09-11 Thread Janko Hauser
On Thu, 11 Sep 2003 09:59:22 +0800 Bjorn Stabell [EMAIL PROTECTED] wrote: Setting Last-Modified to the current time isn't always the right thing; some objects, .e.g., Files, Images, Documents, have last modification times, and using those would be better. Not sure if the accelerator can be

[Zope-dev] Etag support in page templates

2003-09-11 Thread Bjorn Stabell
Janko wrote: I think, this is one problem with the current code. There is no defined way to decide, when something is last modified. With CMF-based sites there is a clearly defined property for this. On the other hand all objects have at least a bobobase_modification_time, but this one

Re: [Zope-dev] Re: Catalog performance

2003-09-11 Thread Toby Dickenson
On Thursday 11 September 2003 03:03, John Barratt wrote: I think ghosts are only 'removed' after a restart, fyi, ghosts are removed from memory using reference counting. -- Toby Dickenson ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Still i18n:attributes DeprecationWarning on Zope head!

2003-09-11 Thread Chris Withers
Chris Withers wrote: /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes=value title). Please use semicolon to separate attributes (i18n:attributes=value; title). Come on!

Re: [Zope-dev] Still i18n:attributes DeprecationWarning on Zope head!

2003-09-11 Thread Stephan Richter
On Thursday 11 September 2003 08:40, Chris Withers wrote: Someone must have written this code! Godefroid was working on this. There are not many other people who could have done that either. What does it mean and what should it be changed to? I think the test must be updated. Regards,

Re: [Zope-dev] PythonLibraries Product

2003-09-11 Thread Paul Winkler
On Wed, Sep 10, 2003 at 09:50:51PM -0400, Tres Seaver wrote: For the filesystem representation: what if we just have two files for templates with libraries: 'foo.html' and 'foo.html.py'? Tools will like that better than either of the approaches which try to preserve the twins as a single

Re: [Zope-dev] Still i18n:attributes DeprecationWarning on Zope head!

2003-09-11 Thread Chris Withers
Stephan Richter wrote: What does it mean and what should it be changed to? I think the test must be updated. Arg! I know that! From what to what?! As usual with deprecation warnings, the error is next to useless... File None at row, column (1, 0) ...very helpful. Anyone have any idea where

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

2003-09-11 Thread Chris Withers
Michael Long wrote: After some further investigation I have found that a product that I am developing is causing the error to appear. The product appears to work fine in zope. I can add it, create objects with it and the objects are persistent. Can someone give me some advice on how to go about

Re: [Zope-dev] PythonLibraries Product

2003-09-11 Thread Fred L. Drake, Jr.
Tres Seaver writes: Actually, the restricted case is the one which has the real win; the free-floating library is pretty, but not semanticaally needed. An added argument: a ZPT with its own private library becomes, in effect, a Zope3 view component; adopting such beasts will ease

Re: [Zope-dev] Catalog performance

2003-09-11 Thread John Barratt
Chris Withers wrote: John Barratt wrote: docs = container.portal_catalog(meta_type='Document', ...) for doc in docs: obj = doc.aq_parent.unrestrictedTraverse(doc.getPath()) was_ghost = obj._p_changed is None value = obj.attr if was_ghost:obj._p_deactivate() Bear in mind though,

Re: [Zope-dev] PythonLibraries Product

2003-09-11 Thread Dan L. Pierson
--On Thursday, September 11, 2003 10:08:23 -0400 Fred L. Drake, Jr. [EMAIL PROTECTED] wrote: Tres Seaver writes: Actually, the restricted case is the one which has the real win; the free-floating library is pretty, but not semanticaally needed. An added argument: a ZPT with its own

Re: [Zope-dev] PythonLibraries Product

2003-09-11 Thread Tres Seaver
On Wed, 2003-09-10 at 23:46, Evan Simpson wrote: Tres Seaver wrote: Actually, the restricted case is the one which has the real win; the free-floating library is pretty, but not semanticaally needed. An added argument: a ZPT with its own private library becomes, in effect, a Zope3 view

Re: [Zope-dev] PythonLibraries Product

2003-09-11 Thread Evan Simpson
Tres Seaver wrote: Hmm, I'm thinking about this for the CMF. In CMF 1.3.x, a template which has a cache manager, or a title, puts those values in a simple 'name=value'-formatted file, with extension '.properties'. Permission mappings go in a separate file, with extension '.security'. I wish I

[Zope-dev] Zope HEAD test.py --dir doesn't work...

2003-09-11 Thread Chris Withers
...can anyone else confirm this? It doesn't appear to ever find any tests. How should it be used? (just to check I'm doing the right thing...) cheers, Chris PS: CC'ing Jeremy in since he's the last person to touch test.py... ___ Zope-Dev maillist

[Zope-dev] New-style classes and Persistence?

2003-09-11 Thread Evan Simpson
What's the latest word on mixing new-style classes and Persistence? I'm finding type subclassing to be extremely useful in PythonLibraries, but so far I'm only using them for non-persistent objects. For part of what I'm doing, though, it would be nice to be able to chuck the old

RE: [Zope-dev] Cache growing during single REQUEST

2003-09-11 Thread Tim Peters
[Toby Dickenson] You get a ReadConflictError when loading an object if it has been modified since the start of the transaction. This exception therefore becomes increasingly likely as time progresses since the start of the transaction. [Chris Withers] What's the thing Zope Corp are touting