[pod] Bugfix in function 'pod'; added new method 'pageBreak' allowing to insert a page break via a note 'do xxx from pageBreak()'

This commit is contained in:
Gaetan Delannay 2013-05-31 15:23:28 +02:00
parent 7049e4780e
commit 1b3af98305
3 changed files with 10 additions and 5 deletions

View file

@ -165,9 +165,7 @@ class PodImporter(DocImporter):
r = self.renderer
# Define where to store the ODT result.
op = os.path
resFolder = op.dirname(self.importPath)
resName = '%s.res.odt' % op.splitext(op.basename(self.importPath))[0]
resOdt = op.join(resFolder, resName)
resOdt = op.join(self.getImportFolder(), '%s.odt' % self.getUuid())
# The POD template is in self.importPath
renderer = r.__class__(self.importPath, self.context, resOdt,
pythonWithUnoPath=r.pyPath,