Back to index

enigmail  1.4.3
Public Member Functions | Private Member Functions
unit-JarMaker._TreeDiff Class Reference
Inheritance diagram for unit-JarMaker._TreeDiff:
Inheritance graph
[legend]
Collaboration diagram for unit-JarMaker._TreeDiff:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def allResults

Private Member Functions

def _fillDiff

Detailed Description

Helper to report rich results on difference between two directories.

Definition at line 110 of file unit-JarMaker.py.


Member Function Documentation

def unit-JarMaker._TreeDiff._fillDiff (   self,
  dc,
  rv,
  basepath = "%s" 
) [private]

Definition at line 113 of file unit-JarMaker.py.

00113 
00114     def _fillDiff(self, dc, rv, basepath="%s"):
00115         rv['right_only'] += map(lambda l: basepath % l, dc.right_only)
00116         rv['left_only'] += map(lambda l: basepath % l, dc.left_only)
00117         rv['diff_files'] += map(lambda l: basepath % l, dc.diff_files)
00118         rv['funny'] += map(lambda l: basepath % l, dc.common_funny)
00119         rv['funny'] += map(lambda l: basepath % l, dc.funny_files)
00120         for subdir, _dc in dc.subdirs.iteritems():
            self._fillDiff(_dc, rv, basepath % (subdir + "/%s"))

Here is the call graph for this function:

Here is the caller graph for this function:

def unit-JarMaker._TreeDiff.allResults (   self,
  left,
  right 
)

Definition at line 121 of file unit-JarMaker.py.

00121 
00122     def allResults(self, left, right):
00123         rv = {'right_only':[], 'left_only':[],
00124               'diff_files':[], 'funny': []}
00125         self._fillDiff(self, rv)
00126         chunks = []
00127         if rv['right_only']:
00128             chunks.append('%s only in %s' % (', '.join(rv['right_only']),
00129                                             right))
00130         if rv['left_only']:
00131             chunks.append('%s only in %s' % (', '.join(rv['left_only']),
00132                                             left))
00133         if rv['diff_files']:
00134             chunks.append('%s differ' % ', '.join(rv['diff_files']))
00135         if rv['funny']:
00136             chunks.append("%s don't compare" % ', '.join(rv['funny']))
00137         return '; '.join(chunks)

Here is the call graph for this function:


The documentation for this class was generated from the following file: