Back to index

plone3  3.1.7
Variables
getVersionDiff Namespace Reference

Variables

 retrieve = context.portal_repository.retrieve
 Script (Python) "onEditChangeSet" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=id1, id2 title=Compute object differences.
 ob1 = context
tuple ob2 = retrieve(context, int(id2))
tuple base_id = ob1.getId()
tuple diff

Variable Documentation

tuple getVersionDiff.base_id = ob1.getId()

Definition at line 19 of file getVersionDiff.py.

Initial value:
00001 context.portal_diff.createChangeSet(ob2, ob1,
00002                                            id1=ob2.getId()+' (rev. %s)'%id2,
00003                                            id2=ob1.getId()+' (rev. %s)'%id1)

Definition at line 20 of file getVersionDiff.py.

tuple getVersionDiff.ob1 = context

Definition at line 14 of file getVersionDiff.py.

tuple getVersionDiff.ob2 = retrieve(context, int(id2))

Definition at line 18 of file getVersionDiff.py.

getVersionDiff.retrieve = context.portal_repository.retrieve

Script (Python) "onEditChangeSet" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=id1, id2 title=Compute object differences.

Definition at line 11 of file getVersionDiff.py.