Back to index

plone3  3.1.7
changeset_edit.py
Go to the documentation of this file.
00001 ## Script (Python) "onEditChangeSet"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=ob1_path, ob2_path
00008 ##title=Compute object differences
00009 ##
00010 
00011 ob1 = context.restrictedTraverse(ob1_path)
00012 ob2 = context.restrictedTraverse(ob2_path)
00013 
00014 context.computeDiff(ob1, ob2)
00015 context.REQUEST.RESPONSE.redirect('.')