RE: [Zope-dev] Etag support in page templates

2003-11-02 Thread Bjorn Stabell
Just FYI.  Apache 2.0.48 now honors caching of pages which only have
Expires set (no need to include Etag and/or Last-Modified), but the 1.3
team hasn't responded and so 1.3.29 still has the bug.  With mod_deflate
site-wide compression of text/html etc, I guess it's enough candy there
for me to upgrade:)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Bare except and ConflictError in manage_beforeDelete

2003-11-02 Thread Florent Guillaume
I wrote:
> I have code that needs to maintain certain invariants when objects are 
> deleted, these invariants are maintained in manage_beforeDelete.
>[...] 
> I want to add an additionnal:
>  except ConflictError:
>  raise

Ok, this has been checked in on HEAD, Zope-2_7-branch and
Zope-2_6-branch.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ZODB object upgrades

2003-11-02 Thread alan milligan
Hi,

Over the last month or so, I've rather wonderfully managed to corrupt my 
ZODB with artifacts of my Currency class that no longer exist.

This is due to:
(i) moving the module to a different package (twice)
(ii) renaming the module
(iii) changing it's inheritance hierarchy (having removed all Zope-awareness 
from class has caused loads of setstate issues in regard to either 
__basicnew__ not found, AttributeErrors, and problems with non-derivation 
from AcquireImplicitWrapper)

I now desperately need to write a parser to convert all of these nasties to 
ZCurrency types.   I've come up with the following ExternalMethod - whereby 
I've defined a __currency__ attribute in each obselete incantation's product 
(Currency object's are used in the spirit of DateTime rather than within 
ObjectManager containment structures):

from Acquisition import aq_base
from Products.BastionBanking.ZCurrency import ZCurrency
def repair(container, counter=0):
   for (k,v) in container.__dict__.items():
   if hasattr(v, '__currency__'):
   setattr(container, k, ZCurrency(v._currency, v._amount))
   counter += 1
   for object in container.objectValues():
   for (k,v) in object.__dict__.items():
   if  hasattr(v, '__currency__'):
   setattr(object, k, ZCurrency(v._currency, v._amount))
   counter += 1
   if hasattr(aq_base(object), 'objectValues'):
   repair(object, counter)
   return counter
However, it doesn't seem to find anything to convert.  Does anyone have any 
ideas?

TIA, Alan

_
Surf the net and talk on the phone with Xtra Jetstream @  
http://www.xtra.co.nz/products/0,,5803,00.html !

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )