[Zope] using RevisionManager

Fred Yankowski fred@ontosys.com
Tue, 6 May 2003 11:13:57 -0500


I'm experimenting with RevisionManager 1.0.1 to see if it could help
manage changes in a Plone-based portal project.  So far it's not going
well.

I created a RevisionManager object at the top of a Plone site, and in
the import tree selected the entire site (the top folder in the
tree).  That fails with an exception:

    Module ZPublisher.Publish, line 98, in publish 
    Module ZPublisher.mapply, line 88, in mapply 
    Module ZPublisher.Publish, line 39, in call_object 
    Module Products.RevisionManager.RevisionManager, line 1126, in rm_import 
    Module Products.RevisionManager.RevisionManager, line 592, in importModule 
    Module Products.RevisionManager.RevisionManager, line 964, in writeToFS 
    Module Products.RevisionManager.RevisionManager, line 244, in _get_source 
    Module ZPublisher.mapply, line 89, in mapply 
    Module Products.CMFCore.FSPythonScript, line 152, in document_src 
    AttributeError: _source 

It looks like RevisionManager is confused by FSPythonScript objects,
which seem to have a document_src attribute but no _source attribute.
OK, fine, trying to slurp in the entire plone site was reckless.

So then I deleted that RevisionManager object and created a new one,
this time taking the other extreme and selecting for import only a
single File object at the top of plone portal tree.  That went OK: the
RevisionManager object lists that imported object as being under CVS
control, in the context of the portal folder.  The corresponding CVS
folders and files exist under $INSTANCE_HOME/var/RevisionManager/ and
in the cvs repository.

But now it seems to be impossible to add any more objects to be
controlled by that RevisionManager.  Its 'Add objects' tab lists no
objects and reports "All objects that can be managed with
RevisionManager are already being managed".   Similarly, the 'Map
files to objects' tab lists nothing.  So, how _do_ I put more objects
under CVS control?

-- 
Fred Yankowski      fred@ontosys.com           tel: +1.630.879.1312
OntoSys, Inc	    PGP keyID: 7B449345        fax: +1.630.879.1370
www.ontosys.com     38W242 Deerpath Rd, Batavia, IL 60510-9461, USA