Re: [ZODB-Dev] Cached object error while upgrading Plone

2011-11-22 Thread Alexandru Plugaru
Hello Martijn,

Actually for DirectoryViewSurrogate (see the second paste) that is not
the case since it subclasses OFS.Folder.Folder  - which is persistent.

Alex.

On 21 November 2011 21:13, Martijn Pieters m...@zopatista.com wrote:
 On Mon, Nov 21, 2011 at 18:40, Alexandru Plugaru
 alexandru.plug...@gmail.com wrote:
 I've got this error ( http://pastie.org/2898828 ) while upgrading from
 plone3 to plone4. The context in which that error happens is this:
 http://pastie.org/2898959

 DirectoryViews are part of the CMF skin machinery and are not meant to
 be persisted. Something that is persistent is referring to the
 DirectoryView (or perhaps a contained skin item) where it should not.

 --
 Martijn Pieters

___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Cached object error while upgrading Plone

2011-11-22 Thread Alexandru Plugaru
Hello Shane,

I think that you're right about the persistent to non-persistent
changes and vice-versa. I will try to identify the object that does
this.

What do you mean by removing add-ons? You mean products? And if I
remove my third party products and make the objects which subclass the
ATFolder broken then I will not get the necessary upgrades specific to
folders right?

Thanks for your input,
Alex.

On 21 November 2011 21:05, Shane Hathaway sh...@hathawaymix.org wrote:
 On 11/21/2011 10:40 AM, Alexandru Plugaru wrote:

 Hello,

 I've got this error ( http://pastie.org/2898828 ) while upgrading from
 plone3 to plone4. The context in which that error happens is this:
 http://pastie.org/2898959

 The only place I could find the error message was in cPersistence.c:

 http://svn.zope.org/*checkout*/ZODB/branches/3.9/src/persistent/cPersistence.c

 So I guess my question is how do I know if an object is cached? And
 maybe a theory of why this is happening.

 That kind of thing happens when a class changes from non-persistent to
 persistent or vice-versa. This may be caused by add-ons. When I do a major
 Plone upgrade, I first disable all add-ons temporarily and that usually does
 the trick.

 If that doesn't work, I suggest you get a list of all your add-ons and ask
 this question on a Plone list.

 Shane

___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Cached object error while upgrading Plone

2011-11-21 Thread Shane Hathaway
On 11/21/2011 10:40 AM, Alexandru Plugaru wrote:
 Hello,

 I've got this error ( http://pastie.org/2898828 ) while upgrading from
 plone3 to plone4. The context in which that error happens is this:
 http://pastie.org/2898959

 The only place I could find the error message was in cPersistence.c:
 http://svn.zope.org/*checkout*/ZODB/branches/3.9/src/persistent/cPersistence.c

 So I guess my question is how do I know if an object is cached? And
 maybe a theory of why this is happening.

That kind of thing happens when a class changes from non-persistent to 
persistent or vice-versa. This may be caused by add-ons. When I do a 
major Plone upgrade, I first disable all add-ons temporarily and that 
usually does the trick.

If that doesn't work, I suggest you get a list of all your add-ons and 
ask this question on a Plone list.

Shane
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev