Back to index

plone3  3.1.7
view_changeset.py
Go to the documentation of this file.
00001 ##parameters=ids=[]
00002 
00003 reference_tool = context.reference_catalog
00004 obj1 = reference_tool.lookupObject(ids[0])
00005 obj2 = reference_tool.lookupObject(ids[1])
00006 
00007 dtool = context.portal_diff
00008 diffs = dtool.createChangeSet(obj1, obj2).getDiffs()
00009 
00010 ignore_list = context.getIgnoreFields()
00011 
00012 diffs = [d for d in diffs if d.field not in ignore_list]
00013 
00014 return context.at_changeset(obj1=obj1,
00015                             obj2=obj2,
00016                             diffs=diffs)