[Checkins] SVN: zopyx.convert2/trunk/src/zopyx/convert2/prince.py prince_options -> options

Andreas Jung andreas at andreas-jung.com
Mon Sep 7 03:55:03 EDT 2009


Log message for revision 103605:
  prince_options -> options
  

Changed:
  U   zopyx.convert2/trunk/src/zopyx/convert2/prince.py

-=-
Modified: zopyx.convert2/trunk/src/zopyx/convert2/prince.py
===================================================================
--- zopyx.convert2/trunk/src/zopyx/convert2/prince.py	2009-09-07 07:27:03 UTC (rev 103604)
+++ zopyx.convert2/trunk/src/zopyx/convert2/prince.py	2009-09-07 07:55:03 UTC (rev 103605)
@@ -20,7 +20,7 @@
 
 prince_available = _check_prince()
 
-def html2pdf(html_filename, output_filename=None, **prince_options):
+def html2pdf(html_filename, output_filename=None, **options):
     """ Convert a HTML file to PDF using FOP"""
 
     if not output_filename:
@@ -30,7 +30,7 @@
         raise RuntimeError("The external PrinceXML converter isn't available")
 
     options = list()
-    for k,v in prince_options.items():
+    for k,v in options.items():
         if v is None:
             options.append('--%s ' % k)
         else:
@@ -60,9 +60,9 @@
     def available():
         return prince_available
 
-    def convert(self, output_filename=None, **prince_options):
+    def convert(self, output_filename=None, **options):
         tidy_filename = tidyhtml(self.filename, self.encoding)
-        result = html2pdf(tidy_filename, output_filename, **prince_options)
+        result = html2pdf(tidy_filename, output_filename, **options)
         os.unlink(tidy_filename)
         return result
 



More information about the checkins mailing list