Re: [Zope-CMF]

2008-08-13 Thread Rob Miller
Rob Miller wrote:
> hi all,
> 
> i've got a GenericSetup branch called 'ra-depends-tag' with a working 
> implementation of a  ZCML tag.  this tag 
> can be used anywhere that you could use a  tag 
> (i.e. either standalone, or nested within a 
> ).  in fact, upgradeDepends is simply a 
> special case of upgradeStep that allows you to specify a set of profile 
> import steps to be re-applied to the site, rather than calling a generic 
> python handler.
> 
> here's an example of how it looks:
> 
>  profile="Products.Something:default"
> source="1.0"
> destination="1.1"
> sortkey="10"
> title="Re-run 'foo' import step"
> import_steps="foo"
> purge="True"
> run_deps="False"
> />
> 
> or alternatively:
> 
>  profile="Products.Something:default"
> source="1.0"
> destination="1.1"
> sortkey="10"
> />
>  title="Re-run 'foo' and 'bar' import steps"
> import_steps="foo bar"
> purge="True"
> run_deps="False"
> />
>  title="Do something else"
> handler="Products.Something.upgrades.do_something_else"
> />
> 
> 
> some notes:
> 
> - there is no problem nesting both upgradeStep and upgradeDepends tags 
> within the same upgradeSteps tag
> 
> - the purge and run_deps attributes are optional and both default to False
> 
> - the import_steps attribute is of token type, so you can list multiple 
> steps separated by whitespace and they will all be run
> 
> - the import_steps attribute is optional, if it is omitted then the 
> entire profile will be reapplied
> 
> - it's not demonstrated in the examples above, but the 'checker' 
> attribute (which points to a callable that can be run to determine 
> whether or not the upgrade action should be performed) is supported, it 
> functions exactly as it does within an upgradeStep tag
> 
> the justification for the existence of this tag should be pretty 
> obvious.  one of the most frequent actions that need to be performed 
> when upgrading to a new version of a product is the reapplication of 
> whichever import steps have been modified since the last profile 
> revision.  you could use the upgradeStep tag to point to a handler that 
> performs this operation, but that requires boilerplate python code, and 
> there's no easy way to express whether or not you want the dependencies 
> to be run, or purge_old to be set, or even which steps should be run.  
> this tag resolves those issues.
> 
> please feel free to peek at the branch and provide feedback on the 
> work.  if there are no objections, i'd like to merge this to the GS 
> trunk as soon as it is deemed appropriate by the release manager.

can i assume from the silence that there are no objections to me merging this 
to trunk?  if i don't hear any within the next 24 hours or so, i'll go ahead 
and do so.

cheers,

-r

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


[Zope-CMF] CMF Tests: 9 OK

2008-08-13 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Tue Aug 12 11:00:00 2008 UTC to Wed Aug 13 11:00:00 2008 UTC.
There were 9 messages: 9 from CMF Tests.


Tests passed OK
---

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Tests
Date: Tue Aug 12 21:28:08 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009578.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:29:39 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009579.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:31:09 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009580.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:32:39 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009581.html

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:34:09 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009582.html

Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:35:39 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009583.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:37:09 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009584.html

Subject: OK : CMF-trunk Zope-2.11 Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:38:39 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009585.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Tests
Date: Tue Aug 12 21:40:10 EDT 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-August/009586.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests