Re: ValueError: Cache values may only be in one cache

Dieter Maurer <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel,gmane.comp.web.zope.coders
Message-ID <[email protected]>
Nate Aune wrote at 2005-1-18 21:48 -0500:
>Can anyone explain why Zope gives this error with I have auto-refresh mode
>enabled on an Archetypes-based product?
> ...
>    try: cache[oid]=object
>ValueError: Cache values may only be in one cache.

This is a persistency bug.

It happens when you bring the same persistent object into
different connection contexts.

Prime causes are persistent objects defined at module or
class level and then changed in a connection.


Archetypes 1.3.1 should no longer have persistency bugs of this kind.
At least, I am able to refresh Archetypes based products (although
I nevered tried auto refresh).

-- 
Dieter


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.