[Zope-Coders] ZopeVersionControl

Shane Hathaway shane@zope.com
Thu, 20 Feb 2003 15:20:44 -0500


Magnus Heino wrote:
> I'm trying to get PloneStaging to work . 
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/collective/PloneStaging/
> 
> Before, when we updated the stages with the 'plone' site object, all its 
> contents were updated.

Yes, but you were storing the *entire* Plone site as a single versioned 
object, which made it impossible to safely version individual objects in 
the Plone site.

> st.updateStages(plone, 'dev', ['review', 'prod'])
> 
> Then Shane made some changes:
> 
> "
> Containers are now versioned independently of their ObjectManagerish contents.
> This means it is now possible to put versioned objects in a hierarchy.
> The current implementation ignores the fact that the user may actually want
> to version the item names and item history IDs. Instead, it only
> versions the aspects of the container that are not items.
> "
> 
> Now just the the plone object and none of its contents are updated.

Perhaps updateStages() should accept a "descend" flag, making it stage 
all descendants as well.  The only odd thing is that with "descend" 
turned on, it should remove items from the destination stage(s) that no 
longer exist on the source stage.

But like Casey said, this is the HEAD of unreleased software... the wild 
side. ;-)

Shane