Commit 8713640f authored by Jérome Perrin's avatar Jérome Perrin

remove obsolete things, pdftk-emulation hack is no longer needed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ebab698
......@@ -51,24 +51,7 @@ try:
except ImportError:
SUPPORTS_WEBDAV_LOCKS = 0
# Programs linked against mandriva libgcj v 3.4.0 ave a strange issue that make
# them impossible to popen within zope. That's why we do not use the 'real'
# pdftk but a replacement program, 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"
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