Commit 00655be6 authored by Kevin Deldycke's avatar Kevin Deldycke

Fix a typo that make pdftk not working in Mandriva 2006.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5015 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5c7dc53
...@@ -89,10 +89,10 @@ class PDFTk : ...@@ -89,10 +89,10 @@ class PDFTk :
tmpFdfFile = open(fdfFormFileName, "w") tmpFdfFile = open(fdfFormFileName, "w")
tmpFdfFile.write(fdfFile) tmpFdfFile.write(fdfFile)
tmpFdfFile.close() tmpFdfFile.close()
out = self._getOutput( out = self._getOutput(
PDFTK_EXECUTABLE+ PDFTK_EXECUTABLE+
" %s fill_form %s output - flattern "%( " %s fill_form %s output - flatten "%(
pdfFormFileName, fdfFormFileName)) pdfFormFileName, fdfFormFileName))
os.remove(fdfFormFileName) os.remove(fdfFormFileName)
os.remove(pdfFormFileName) os.remove(pdfFormFileName)
...@@ -220,7 +220,7 @@ class CalculatedValues : ...@@ -220,7 +220,7 @@ class CalculatedValues :
# doesn't complain that NoneType doesn't support + when a1 not found # doesn't complain that NoneType doesn't support + when a1 not found
return self.__values[attr] return self.__values[attr]
__getattr__ = __getitem__ __getattr__ = __getitem__
allow_class(CalculatedValues) allow_class(CalculatedValues)
...@@ -330,7 +330,7 @@ class PDFForm(File): ...@@ -330,7 +330,7 @@ class PDFForm(File):
RESPONSE.write(content) RESPONSE.write(content)
return content return content
manage_DAVget = manage_FTPget manage_DAVget = manage_FTPget
security.declareProtected(Permissions.ManagePortal, 'PUT') security.declareProtected(Permissions.ManagePortal, 'PUT')
def PUT(self, REQUEST, RESPONSE): def PUT(self, REQUEST, RESPONSE):
"""(does not) Handle HTTP PUT requests.""" """(does not) Handle HTTP PUT requests."""
...@@ -463,12 +463,12 @@ class PDFForm(File): ...@@ -463,12 +463,12 @@ class PDFForm(File):
security.declareProtected(Permissions.ManagePortal, 'deleteCell') security.declareProtected(Permissions.ManagePortal, 'deleteCell')
def deleteCell(self, cell_name): def deleteCell(self, cell_name):
""" Delete a cell. """ Delete a cell.
As setCellTALES add the cell if it is not present, we must have a As setCellTALES add the cell if it is not present, we must have a
way to remove cells created by mistake. """ way to remove cells created by mistake. """
del self.all_cells[cell_name] del self.all_cells[cell_name]
del self.cells[cell_name] del self.cells[cell_name]
security.declareProtected(Permissions.ManagePortal, 'setCellTALES') security.declareProtected(Permissions.ManagePortal, 'setCellTALES')
def setCellTALES(self, cell_name, TALES): def setCellTALES(self, cell_name, TALES):
""" changes the TALES expression that will be used to evaluate """ changes the TALES expression that will be used to evaluate
...@@ -481,7 +481,7 @@ class PDFForm(File): ...@@ -481,7 +481,7 @@ class PDFForm(File):
self.all_cells[str(cell_name)] = self.cells[str(cell_name)] = TALES self.all_cells[str(cell_name)] = self.cells[str(cell_name)] = TALES
# invalidate for persistence # invalidate for persistence
self.all_cells = self.all_cells self.all_cells = self.all_cells
security.declareProtected(Permissions.View, 'getCellTALES') security.declareProtected(Permissions.View, 'getCellTALES')
def getCellTALES(self, cell_name): def getCellTALES(self, cell_name):
""" returns the TALES expression associated with this cell """ """ returns the TALES expression associated with this cell """
......
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