Back to index

plone3  3.1.7
Classes | Functions
CMFDiffTool.FieldDiff Namespace Reference

Classes

class  FieldDiff

Functions

def dump
def plain_replace

Function Documentation

def CMFDiffTool.FieldDiff.dump (   tag,
  x,
  lo,
  hi,
  r 
)

Definition at line 54 of file FieldDiff.py.

00054 
00055 def dump(tag, x, lo, hi, r):
00056     for i in xrange(lo, hi):
00057         r.append(tag +' ' + str(x[i]))

Here is the caller graph for this function:

def CMFDiffTool.FieldDiff.plain_replace (   a,
  alo,
  ahi,
  b,
  blo,
  bhi,
  r 
)

Definition at line 58 of file FieldDiff.py.

00058 
00059 def plain_replace(a, alo, ahi, b, blo, bhi, r):
00060     assert alo < ahi and blo < bhi
00061     # dump the shorter block first -- reduces the burden on short-term
00062     # memory if the blocks are of very different sizes
00063     if bhi - blo < ahi - alo:
00064         dump('+', b, blo, bhi, r)
00065         dump('-', a, alo, ahi, r)
00066     else:
00067         dump('-', a, alo, ahi, r)
00068         dump('+', b, blo, bhi, r)

Here is the call graph for this function:

Here is the caller graph for this function: