Discussion:
[Erp5-dev] [DMS] document preview
Łukasz Nowak
2008-09-16 14:33:23 UTC
Permalink
Hello,

I'm using
testDms:TestDocumentWithSecurity:test_ShowPreviewAfterSubmitted to check
if HTML preview is working (as it is not working well in my instance).

I'm using revision 23313 and according to unit test run everything shall
run smooth. I cannot achieve this.

Is it a problem of my oood/openoffice combination?:

openoffice.org-oood-0.3.1-9nxd2008.1
grep uno_path /etc/oood/oood.conf
uno_path = /usr/lib/ooo-2.4/program

openoffice.org-pyuno-2.4.1.5-2.3mdv2008.1

What is currently supported combination of them?


More details - test log:

2008-09-16 16:32:05 INFO Document_getPreviewAsHTML, 13: asStrippedHTML 'mime'

- oood log:
2008/09/16 16:32:05 WARNING <Thread-228> [factory] building worker for 0
2008/09/16 16:32:05 INFO <Thread-228> [worker] resetting worker 0
2008/09/16 16:32:05 INFO <Thread-228> [factory] worker for 0 created
2008/09/16 16:32:05 INFO <Thread-228> [worker] trying to load /var/tmp/oood/0_1
2008/09/16 16:32:05 ERROR <Thread-228> OSError: [Errno 2] No such file or directory
2008/09/16 16:32:05 ERROR <Thread-228> File "//usr/share/oood/worker.py", line 215, in _run
res = func(*args, **kwargs)
File "//usr/share/oood/worker.py", line 150, in generate
self._loadFile(kw['filename'], kw)
File "//usr/share/oood/worker.py", line 258, in _loadFile
os.rename(fname, new_fname)

2008/09/16 16:32:05 INFO <Thread-228> [worker] resetting worker 0
2008/09/16 16:32:05 ERROR <Thread-228> OSError: [Errno 2] No such file or directory
2008/09/16 16:32:05 ERROR <Thread-228> File "//usr/share/oood/dispatcher.py", line 246, in do_dispatch
data = self._process(worker, funcname, request)
File "//usr/share/oood/dispatcher.py", line 422, in _process
return method(request)
File "//usr/share/oood/worker.py", line 215, in _run
res = func(*args, **kwargs)
File "//usr/share/oood/worker.py", line 150, in generate
self._loadFile(kw['filename'], kw)
File "//usr/share/oood/worker.py", line 258, in _loadFile
os.rename(fname, new_fname)

2008/09/16 16:32:05 INFO <Thread-228> 402

Test traceback:

======================================================================
FAIL: test_ShowPreviewAfterSubmitted (testDms.TestDocumentWithSecurity)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/shufla/work/erp5ventis/unit_test/Products/ERP5OOo/tests/testDms.py", line 806, in test_ShowPreviewAfterSubmitted
self.assert_('I use reference to look up TEST' in preview_html)
AssertionError


Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
Łukasz Nowak
2008-09-23 11:39:55 UTC
Permalink
Hello,

Problem was solved after installing
openoffice.org-oood-0.3.1-10nxd2008.1

Thanks :)

Luke
Post by Łukasz Nowak
Hello,
I'm using
testDms:TestDocumentWithSecurity:test_ShowPreviewAfterSubmitted to check
if HTML preview is working (as it is not working well in my instance).
I'm using revision 23313 and according to unit test run everything shall
run smooth. I cannot achieve this.
openoffice.org-oood-0.3.1-9nxd2008.1
grep uno_path /etc/oood/oood.conf
uno_path = /usr/lib/ooo-2.4/program
openoffice.org-pyuno-2.4.1.5-2.3mdv2008.1
What is currently supported combination of them?
2008-09-16 16:32:05 INFO Document_getPreviewAsHTML, 13: asStrippedHTML 'mime'
2008/09/16 16:32:05 WARNING <Thread-228> [factory] building worker for 0
2008/09/16 16:32:05 INFO <Thread-228> [worker] resetting worker 0
2008/09/16 16:32:05 INFO <Thread-228> [factory] worker for 0 created
2008/09/16 16:32:05 INFO <Thread-228> [worker] trying to load /var/tmp/oood/0_1
2008/09/16 16:32:05 ERROR <Thread-228> OSError: [Errno 2] No such file or directory
2008/09/16 16:32:05 ERROR <Thread-228> File "//usr/share/oood/worker.py", line 215, in _run
res = func(*args, **kwargs)
File "//usr/share/oood/worker.py", line 150, in generate
self._loadFile(kw['filename'], kw)
File "//usr/share/oood/worker.py", line 258, in _loadFile
os.rename(fname, new_fname)
2008/09/16 16:32:05 INFO <Thread-228> [worker] resetting worker 0
2008/09/16 16:32:05 ERROR <Thread-228> OSError: [Errno 2] No such file or directory
2008/09/16 16:32:05 ERROR <Thread-228> File "//usr/share/oood/dispatcher.py", line 246, in do_dispatch
data = self._process(worker, funcname, request)
File "//usr/share/oood/dispatcher.py", line 422, in _process
return method(request)
File "//usr/share/oood/worker.py", line 215, in _run
res = func(*args, **kwargs)
File "//usr/share/oood/worker.py", line 150, in generate
self._loadFile(kw['filename'], kw)
File "//usr/share/oood/worker.py", line 258, in _loadFile
os.rename(fname, new_fname)
2008/09/16 16:32:05 INFO <Thread-228> 402
======================================================================
FAIL: test_ShowPreviewAfterSubmitted (testDms.TestDocumentWithSecurity)
----------------------------------------------------------------------
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/shufla/work/erp5ventis/unit_test/Products/ERP5OOo/tests/testDms.py", line 806, in test_ShowPreviewAfterSubmitted
self.assert_('I use reference to look up TEST' in preview_html)
AssertionError
Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
Loading...