[Zope-CMF] Re: Five's local sitemanager, CMF, etc
Tres Seaver
tseaver at palladion.com
Fri Feb 23 09:04:26 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yuppie wrote:
> Hi!
>
>
> Tres Seaver wrote:
>> 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.
>
> Ok. I can have a closer look at this part.
I just meant that "creating a component registry on th fly" sounded
suspiciously like "migration code" to me.
>>> 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.
>
> I'll leave that part to someone else.
The script would something like the attached file: I'm not up on the
details of what would need to be done, but I have used the skeleton a
fair bit.
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
iD8DBQFF3vRq+gerLs4ltQ4RApYUAJ4hdjzP+nQVjq1cOsavmXx5OrgPygCgwr4g
BnTSC9HAwaw+Idyo1mhGAHw=
=GyfV
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_script.py
Type: application/x-httpd-cgi
Size: 2198 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20070223/112e78b9/sample_script-0002.bin
More information about the Zope-CMF
mailing list