Exemple #1
0
 def diff_item(self, package_1_path, package_2_path, uri_tail):
     """
     Display the meaningful differences between the item identified by
     *uri_tail* in the package at *package_1_path* and its counterpart in
     the package at *package_2_path*. Each path can be either a standard
     zip package (e.g. a .pptx file) or a directory containing an extracted
     package.
     """
     package_1 = Package.read(package_1_path)
     package_2 = Package.read(package_2_path)
     diff = DiffPresenter.named_item_diff(package_1, package_2, uri_tail)
     OpcView.item_diff(diff)
Exemple #2
0
 def diff_item(self, package_1_path, package_2_path, uri_tail):
     """
     Display the meaningful differences between the item identified by
     *uri_tail* in the package at *package_1_path* and its counterpart in
     the package at *package_2_path*. Each path can be either a standard
     zip package (e.g. a .pptx file) or a directory containing an extracted
     package.
     """
     package_1 = Package.read(package_1_path)
     package_2 = Package.read(package_2_path)
     diff = DiffPresenter.named_item_diff(package_1, package_2, uri_tail)
     OpcView.item_diff(diff)