Commit 25649bc8 authored by Kevin Deldycke's avatar Kevin Deldycke

pdftk-emulation no longer needed with recent version of zope and python.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a9bd1bc
......@@ -54,6 +54,19 @@ except ImportError:
# pdftk-emulation available from nexedi's RPM repositories.
PDFTK_EXECUTABLE = "pdftk-emulation"
# With python >= 2.4 and zope >= 2.7.8, pdftk-emulation is no longer needed
import sys, App.version_txt
python_version = sys.version.split(' ')[0].split('.')
python_version = int(python_version[0]) * 100 +\
int(python_version[1])
zope_version = App.version_txt.getZopeVersion()
zope_version = int(zope_version(0)) * 100 * 100 +\
int(zope_version(1)) * 100 +\
int(zope_version(2))
if python_version >= 204 and zope_version >= 20708:
PDFTK_EXECUTABLE = "pdftk"
class PDFTk :
"""
A class to wrapp calls to pdftk executable, found at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment