carocha / python-relatorio Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-relatorio
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/python-relatorio
License: GNU General Public License v3.0
paepke:
I'd like to request to support the openoffice flat-xml format. It would be good
to have this format cause of the better support to have openoffice files under
a version control system not only as binary blobs like the standard zipped .odt
format.
ced:
What is the constraint of fodt?
I tried to save a file into fodt but it failed.
paepke:
On some OpenOffice?.org versions that filter isn't installed.
Sorry for that long delay in answering, but it seems i don't get informed by
trac.
udono:
It seems that libreoffice has fixed this issue:
http://www.libreoffice.org/assets/Uploads/EN-Project_images/NewFeatures/General/
1000X750/save-flat-xml.png
http://www.libreoffice.org/download/new-features-and-fixes/
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:46
The frame name should be unique in the document because it can be used as
reference.
So we must allow the user to create correct document by setting a unique name
to the image frame.
http://codereview.appspot.com/200570043
Original issue reported on code.google.com by [email protected]
on 19 Feb 2015 at 11:41
In order to apply the templating defined by the user on a table-cell
libreoffice needs have the correct value-type defined on the cell.
The current implementation of guess_type only returns two types : string and
float.
We propose to add an object to allow the user to specify which type the cell
must have.
Original issue reported on code.google.com by [email protected]
on 7 Jan 2015 at 10:56
Referring to
http://code.google.com/p/python-relatorio/issues/detail?id=12&can=1
and
https://codereview.appspot.com/104580046
For inclusion of the Python3 package into Debian, the tests must pass.
Find attached the build log for Python3.4, perhaps the remaining issues on
https://codereview.appspot.com/104580046 now are more clear. Please advise, how
to proceed best.
I: pybuild base:170: python3.4 setup.py test
running test
running build_py
running egg_info
creating
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pybu
ild/pythonX.Y_3.4/build/relatorio.egg-info
writing top-level names to
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pybu
ild/pythonX.Y_3.4/build/relatorio.egg-info/top_level.txt
writing requirements to
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pybu
ild/pythonX.Y_3.4/build/relatorio.egg-info/requires.txt
writing
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pybu
ild/pythonX.Y_3.4/build/relatorio.egg-info/PKG-INFO
writing dependency_links to
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pybu
ild/pythonX.Y_3.4/build/relatorio.egg-info/dependency_links.txt
writing manifest file
'/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pyb
uild/pythonX.Y_3.4/build/relatorio.egg-info/SOURCES.txt'
reading manifest file
'/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pyb
uild/pythonX.Y_3.4/build/relatorio.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file
'/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/.pyb
uild/pythonX.Y_3.4/build/relatorio.egg-info/SOURCES.txt'
running build_ext
/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relat
orio/templates/__init__.py:29: UserWarning: Unable to load plugin 'chart'
warnings.warn("Unable to load plugin '%s'" % name)
relatorio.tests.test_api.TestReport.test_factory ... ERROR
relatorio.tests.test_api.TestReport.test_report ... ERROR
relatorio.tests.test_api.TestReportInclude.test_include ... ok
relatorio.tests.test_api.TestRepository.test_absolute ... ok
relatorio.tests.test_api.TestRepository.test_mimeguesser ... ok
relatorio.tests.test_api.TestRepository.test_register ... ok
relatorio.tests.test_odt.TestOOTemplating.test_column_looping ... ERROR
/usr/lib/python3.4/unittest/case.py:605: ResourceWarning: unclosed file
<_io.BufferedReader
name='/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio
/relatorio/tests/test.odt'>
outcome.errors.clear()
relatorio.tests.test_odt.TestOOTemplating.test_directives ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_filters ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_generate ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_images ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_init ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_regexp ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_styles ... ERROR
relatorio.tests.test_odt.TestOOTemplating.test_text_outside_p ... ERROR
======================================================================
ERROR: relatorio.tests.test_api.TestReport.test_factory
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_api.py", line 110, in test_factory
a = StubObject(name='Foo')
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_api.py", line 33, in __init__
for key, val in kwargs.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
======================================================================
ERROR: relatorio.tests.test_api.TestReport.test_report
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_api.py", line 92, in test_report
a = StubObject(name='OpenHex')
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_api.py", line 33, in __init__
for key, val in kwargs.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_column_looping
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_directives
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_filters
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_generate
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_images
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_init
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_regexp
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_styles
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
======================================================================
ERROR: relatorio.tests.test_odt.TestOOTemplating.test_text_outside_p
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 382, in setUp
try_run(self.inst, ('setup', 'setUp'))
File "/usr/lib/python3/dist-packages/nose/util.py", line 470, in try_run
return func()
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/tests/test_odt.py", line 62, in setup
self.oot = Template(open(filepath, mode='rb'))
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 239, in __init__
encoding, lookup, allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "/usr/lib/python3/dist-packages/genshi/template/base.py", line 418, in __init__
self._stream = self._parse(source, encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 265, in _parse
content = template._parse(self.insert_directives(content), encoding)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 317, in insert_directives
self._handle_relatorio_tags(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 407, in _handle_relatorio_tags
r_statements, closing_tags = self._relatorio_statements(tree)
File "/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/relatorio/relatorio/templates/opendocument.py", line 355, in _relatorio_statements
expr = urllib.unquote(statement.attrib[xlink_href_attrib][12:])
AttributeError: 'module' object has no attribute 'unquote'
----------------------------------------------------------------------
Ran 15 tests in 1.558s
FAILED (errors=11)
E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1:
python3.4 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 3.4 --dir . returned exit
code 13
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 13
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Original issue reported on code.google.com by [email protected]
on 12 Sep 2014 at 11:27
What steps will reproduce the problem?
1. Entering a nested loop in an ODT template such as:
<for each="key, val_list in obj.iteritems">
<key> : <for each="val in val_list><_val>
</for>
</for>
(line-breaks positioning is important to reproduce)
What is the expected output?
Expected output:
key1 : val1
val2
val3
key2 : valx...
What do you see instead?
Nothing
What version of the product are you using? On what operating system?
relatorio 0.5.6 from Debian's package python-relatorio 0.5.6-2 (wheezy)
Please provide any additional information below.
Changing the position of the line breaks changes the *text* of the output.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:54
Issue migrated from openhex.org:
nicoe:
It would be nice if there was a way to sign an ODT document with an SSL
Certificate.
nicoe:
Is relatorio really the place wher it should be done ?
ced:
I think so because it is relatorio that generates the content.
http://lists.oasis-open.org/archives/office/200702/msg00085.html
The schema for digital signatures is:
http://lists.oasis-open.org/archives/office/200702/msg00085.html
We could use http://pyxmlsec.labs.libre-entreprise.org/
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:43
Idea contributed on the ML by Alan Sill.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:50
What steps will reproduce the problem?
1. make an odt file with 2 frames or 1 frame with 2 records
2. take 1 record or 2 records to make a rapport
3. LibreOffice can open the rapport and make an error in write
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Product python-relatorio 0.5.7-2, trytond v2.8, OS ubuntu 13.10, LibreOffice
4.1.3.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2013 at 5:28
Attachments:
Tests on Python3.4 are failing with:
I: pybuild base:170: python3.4 setup.py test
running test
running build_py
running egg_info
creating
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info
writing top-level names to
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/top_
level.txt
writing
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/PKG-
INFO
writing dependency_links to
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/depe
ndency_links.txt
writing requirements to
/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/requ
ires.txt
writing manifest file
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
reading manifest file
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file
'/tmp/buildd/relatorio-0.6.0/.pybuild/pythonX.Y_3.4/build/relatorio.egg-info/SOU
RCES.txt'
running build_ext
Failure: ImportError (No module named 'templates') ... ERROR
======================================================================
ERROR: Failure: ImportError (No module named 'templates')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.4/imp.py", line 245, in load_module
return load_package(name, filename)
File "/usr/lib/python3.4/imp.py", line 217, in load_package
return methods.load()
File "<frozen importlib._bootstrap>", line 1220, in load
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/tmp/buildd/relatorio-0.6.0/relatorio/__init__.py", line 13, in <module>
import templates
ImportError: No module named 'templates'
----------------------------------------------------------------------
Ran 1 test in 0.039s
Original issue reported on code.google.com by [email protected]
on 7 Jul 2014 at 6:33
http://www.htmltopdf.org/
PISA seems like a good solution to easily create pdf from templates.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:46
I am creating a report in tryton where I need to loop the one2many field for exactly 5 records and display the data in vertical table. For example -
Date | date1 | date2 | date3
Field1 | value11 | value12 | value13
Field2 | value21 | value22 | value23
Field3 | value31 | value32 | value33
Field4 | value41 | value42 | value43
How to achieve it ?
Here is a patch to avoid python trying to show the line of failing evaluated
expression.
http://codereview.appspot.com/107810044
Original issue reported on code.google.com by [email protected]
on 4 Jun 2014 at 9:10
Here is a patch to change the namespace of relatorio to not depend on the
hosting of the project.
http://codereview.appspot.com/205910043
Original issue reported on code.google.com by [email protected]
on 22 Feb 2015 at 7:19
Trying to produce a calc (.ods) report from Tryton 3.0.1 using relatorio.
But the numeric values get a hidden quote ( ' ) in front so they don't get
recognized as numeric but as string.
Is there a way to overpass it?
Thanks
Original issue reported on code.google.com by [email protected]
on 27 Oct 2014 at 3:27
A request from Michael Hierwieck to create a LaTeX template to output pdf files
... that should not be hard provided we already support ConTeXt? templates.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:44
sraps:
I have tried to recreate scenario like this:
http://support.sas.com/documentation/cdl/en/wbov/61188/HTML/default/images/vderc
total.gif
Place a loop on cells which have rowspanned neighbour on the left or right to
them. I am pretty sure this would be the same with colspan.
I attach ODT template which shows basic situation.
ced:
Please provide a python script like in
http://relatorio.openhex.org/browser/examples/demo_odf.py
The best is a patch that extends the examples demo_odf.py
sraps:
Referring to IRC conversation, ced has understood the problem, as it is obvious. Unfortunately I am not able to provide other information on this.
Still demanding a test case is just a useless frustration.
Best regards...
ced:
A test case will ensure that there will be no regression about this feature in
the future and it will simplified the work of developers that fix the issue.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:48
Attachments:
I tried many time to produce the pdf example with "python demo_context.py", under the "examples" folder, but I always get an error.
I thought it was a bug, and I have wait months in order to see it fixed... but
today I took a look at the source and I realize that in my debian squeeze is
missing the "context" module!
If Relatorio don't find "texexec" executable it produce an "obscure" error
message, look at here here:
$ python demo_context.py
generating output_basic.pdf...
Traceback (most recent call last):
File "demo_context.py", line 12, in <module>
content = report(o=inv).render().getvalue()
File "/usr/lib/python2.5/site-packages/relatorio-0.5.5-py2.5.egg/relatorio/templates/base.py", line 36, in render
return self.serializer(self.events)
File "/usr/lib/python2.5/site-packages/relatorio-0.5.5-py2.5.egg/relatorio/templates/pdf.py", line 61, in call
cwd=self.working_dir)
File "/usr/lib/python2.5/subprocess.py", line 457, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.5/subprocess.py", line 444, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.5/subprocess.py", line 594, in init
errread, errwrite)
File "/usr/lib/python2.5/subprocess.py", line 1153, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I propose to check if the "texexec" exists or to catch this error in order to
explain the problem ("'texexec' not found" or similar)
Thanks
Alessandro
Original issue reported on code.google.com by [email protected]
on 8 Jul 2013 at 4:49
To ease compatibility between Python 2 and 3, it is better to always use the
new io module instead of StringIO.
http://codereview.appspot.com/118780043
Original issue reported on code.google.com by [email protected]
on 16 Jul 2014 at 3:30
What steps will reproduce the problem?
1. On python 2.7. relatorio installed with code of today relatorio==0.6.2
2. python demo_odf.py
~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/relatorio-0.6.2-py2.7
.egg/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin
'chart'
warnings.warn("Unable to load plugin '%s'" % name)
generating output_basic.odt... done
generating output_template_basic.odt...
Traceback (most recent call last):
File "demo_odf.py", line 23, in <module>
filepath=abspath(join(dirname(__file__), 'basic.odt')))
File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/relatorio-0.6.2-py2.7.egg/relatorio/templates/opendocument.py", line 247, in __init__
encoding, lookup, allow_exec)
File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/markup.py", line 67, in __init__
allow_exec=allow_exec)
File "~/virtualenvs/relatorio2/local/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/template/base.py", line 417, in __init__
source = BytesIO(source)
TypeError: must be string or buffer, not None
What version of the product are you using? On what operating system?
Ubuntu 14.04 python 2.7 relatorio==0.6.2
Please provide any additional information below.
Regards
Original issue reported on code.google.com by [email protected]
on 24 Feb 2015 at 2:33
Filetype: .ods
What steps will reproduce the problem?
1. In the template add formatting to a cell with right mouse button > Format
Cells.. (I've chosen currency)
2. Let the parser fill it with a numeric value
What is the expected output? What do you see instead?
Value: 10.35 should show € 10.35.- but instead it shows 10.35 and once you
focus on the cell you will see it actually contains a quote character ('10.35).
If you remove the quote character manually (in the generated file) it will show
the correct formatting.
This is reproduced with the following:
Relatorio version 0.6.1 (latest) on Debian
Original issue reported on code.google.com by [email protected]
on 6 Jan 2015 at 1:13
In a spreadsheet, a loop that contains an image evaluated for each row will
result in every image anchored in the same table cell.
According to the OASIS specification the end-cell-address attribute in
draw:frame tags specifies in which cell should the frame stop ; in this case
every frame will have the same value. An empty value results in the an
unspecified behavior but it's the one we expect: the frame is put into the
resulting cell.
The provided patch implements this: https://codereview.appspot.com//184520043/
Original issue reported on code.google.com by [email protected]
on 15 Dec 2014 at 4:20
Hi, found a small issue with relatorio,
STR
1. Launch trytond under windows (yes, not straightforward, but not really
difficult)
2. Launch tryton client, log in and attempt to generate a report
Expected: The report opens in OpenOffice
Real world: A 500 error is returned
trytond 3.0.2 on Windows 7 Pro 32
(the same steps on the demo server with the same windows client correctly
generate a report)
Observations / investigation:
The temporary file cannot be removed as it is still opened. The bug
occurs at trytond/report/report.py:280 with the instruction "os.remove(path)".
Adding the line
self.inzip.close()
just after relatorio/templates/opendocument.py:890 resolved the issue.
Indeed, closing outzip in Report.parse (trytond/report/report.py:258) does not
prevent it from being reopened when OOSerializer's __init__ is called, in
Template.generate function at opendocument.py:710, with self._zip_source as an
argument. self._zip_source is not the same object as Report.parse's outzip as
it is re-created (and re-opened) from its path at opendocument.py:264.
It therefore needs to be closed at the end of the process, and a possibility is
to make the suggested change above. You may have reasons to close self.inzip
somewhere else, but it would hardly be possible to close it before this point.
This bug probably only occurs on Windows, which is maybe a little fussier about
file handles not being released, and is probably not relevant for linux
versions but it may be worth fixing it.
Original issue reported on code.google.com by [email protected]
on 12 Feb 2014 at 8:58
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.