Michael Lindig wrote at 2009-10-22 13:30 +0200:
> ...
>> This indicates that after your version change, the then used
>> code is no longer compatible with the state of objects
>> (related to "localsitemanager.registry") stored in the ZODB.
>> An option may be, to manually delete and recreate the "localsitemanager"
>> registries).
>
>Can you give me more details about manually deletion and recreation of
>localsitemanager? I does not know where I shall delete the localsitemanager in
>Plone-3.3.1.
While I have seen problems like yours, I could just delete the complete
ZODB and recreate it anew (because I have had no valuable data).
Almost surely, this is not the case for you.
I have analysed some problems with "localsitemanager". But, this was
about a year ago and my memory is no longer to be fully trusted in this
matter. Thus, be careful with what follows.
The "localsitemanager" is maintained as an attribute of the Plone site
object. When I remember right, its name is "_components" (but I may well
be wrong). You remove the attribute with "del site.<attribute>".
When I remember right, BBB code ensures that the site manager is
automatically recreated when needed for the next time (but again, I
am not sure).
I would do the deletion operation inside an interactive Python
debug session ("bin/plonectl debug"). In this case, an explicite
"transaction.commit()" is necessary to make the deletion persistent.
An alternative is to perform the deletion inside a Web request, e.g.
an "ExternalMethod". Then, the Web framework will do the "commit".
The "localsitemanager" is used for local registrations. Plone uses
local registrations e.g. for the portletmanagers and portlet-manager
associations available to a site. Even if the "localsitemanager"
is recreated automatically, it will be empty. To fill it again,
you will need to import the corresponding GenericSetup steps again
(I know the "portlets" will need to be reimported, maybe more).
--
Dieter
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users