[Zope-CMF] Re: Modifications using GS profiles

Tres Seaver tseaver at palladion.com
Thu Apr 5 10:03:55 EDT 2007



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

Wichert Akkerman wrote:
> Does anyone have any objections to modifying some of the CMFCore
> exportimport code to support changing aspects of items instead of
> wholesale replacing them?
> 
> I would like to be able to do things like this:
> 
> <?xml version="1.0"?>
> <object name="File"
>    meta_type="Factory-based Type Information with dynamic views">
>  <property name="Just replace the title">
>  <action action_id="edit" condition_expr="only-replace-expression">
>  </action>
> </object>
> 
> of course delta profiles or however we end up supporting modifications
> is a better solution, but I'm looking for something that is workable
> right now.
> 
> The particular reason I'm interested in this is that for Plone we are
> playing with using GenricSetup profiles as part of the migration code.
> This means we can write a lot less python code but just write changes
> as profile snippets. For an example see
> http://dev.plone.org/plone/browser/CMFPlone/trunk/migrations/v3_0/profiles/beta1_beta2/portal_atct.xml . That adds two new indexes to portal_atct and
> only updates the description for various bits of metadata, leaving all
> other aspects untouched.

There may be a better solution in place already on the branch we worked
on at the BBQ Sprint:

  svn+ssh://svn.zope.org/repos/main/GenericSetup/branches/tseaver-bbq_sprint


That branch includes Rob Miller's work to land the "upgrade steps"
feature from the CPS extensions the GenericSetup, along with an
improvied "base vs. extension" UI.


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

iD8DBQFGFQHL+gerLs4ltQ4RAjrmAJ9cscL8AUQmx49BPc+X9fs2rWgXBgCfe9jP
U2V9eUH+BwerxXIkKqsHu1k=
=w9/6
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list