[Zope-CMF] Re: Five's local sitemanager, CMF, etc

Tres Seaver tseaver at palladion.com
Fri Feb 23 06:52:43 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yuppie wrote:

> Jens Vagelpohl wrote:
>> On 23 Feb 2007, at 00:39, Rocky wrote:
>>> So... what's next?
>> Figuring out how to deal with existing sites that need to be modified on 
>> the fly somehow so they don't break completely.
> 
> I propose to hardcode PortalObjectBase as IObjectManagerSite. AFAICS 
> getSiteManager() could create a component registry on the fly if 
> necessary. So for that part we would neither need the new code in 
> importVarious nor migration code.

Hmm, I won't quibble about "migration code". +1.

> For registering the tools as utilities you still need to run the 
> componentregistry import step. I would not use on-the-fly magic for that 
> part, I think people should do that explicitly.

If the code which *used* to work using 'getToolByName' now breaks beofre
that step is done, then we have a problem.  If there is a clear, simple
step to perform after upgrade, then we should be OK.

E.g., we might tell folks to do something like:

 $ cd $INSTANCE_HOME
 $ ./bin/zopectl run Products/CMFCore/scripts/updateSites foo bar/baz

To upgrade the 'foo', and 'bar/baz' site objects.  I see no benefit to
trying to do any migration from within the ZMI here.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3tWL+gerLs4ltQ4RAnW4AJ4haOZFzRT0bnqN4aNlyIEyiBlbkwCgy5id
IHBEGs1wqUie0S2j9hd57Kc=
=tvPd
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list