Hi again,

I have an update to Problem 2 below: The default style only appears on
the "Search", "Submit", "Personalize", and "Administration" pages. For
some strange reason, the "Help" pages appear in my custom style.

Default style appears here: http://sysdoc.com.dtu.dk/
My custom style appears here:
http://sysdoc.com.dtu.dk/help/index.en.html

Furthermore, in the sourcecode from http://sysdoc.com.dtu.dk/, there is
a tag  "<!-- replaced page header -->" before CDSPAGEHEADER. This does
not appear in the help files. I tried to search the source files for
this tag to see where it is applied, but could not find it. 

I have tried to delete the installation directory (/opt/cds-invenio) and
make install, with the same result.


Have anyone else seen this problem? 


Best regards,

Torger Tokle
COM-DTU
Technical University of Denmark



-----Original Message-----
From: Torger Tokle 
Sent: 29. juni 2007 14:18
To: [email protected]
Subject: Make test errors + config.wml settings disregarded after
upgrading from 0.7.1 to 0.92.1

Hi,

We were happily running CDSWare 0.7.1 until the computer became unstable
(probably not CDSWare related problems). So we got a new computer and
decided to install the latest version of CDS Invenio, 0.92.1. Everything
seems to work fine, but there are two problems.

Problem 1:
^^^^^^^^^^
In config/config.wml, any changes to "<define-tag CDSPAGEHEADER>" and
"<define-tag CDSPAGEFOOTER>" does not have any effect. But "<define-tag
CDSPAGEBOXRIGHTTOP>" does work. To clearify: no matter what I specify in
config.wml, I get CDSPAGEHEADER and CDSPAGEFOOTER from the demo site
(same as http://cdsware.cern.ch:8000/).

After changing config.wml I do  (first I do "wml config/config.wml" to
check config.wml for errors) ./configure --prefix.....
make clean
make
make install
apache2ctl restart

This method worked fine with version 0.7.1.

Does anyone have an idea why this is happening? 

Problem 2:
^^^^^^^^^^
"make test" causes two errors and two failures, as shown below. I do not
really care about the slovak GUI date, my site is english only. But the
bibformat failures could be more important?

Hope someone can tell me if this is important (and maybe in any way
related to problem 1?)


Best regards,

Torger Tokle
Technical University of Denmark
http://sysdoc.com.dtu.dk/ (old site, new site not in production yet)



make test output:
________________________________________________________________________
_____________________________
________________________________________________________________________
_____________________________

CDS Invenio v0.92.1 test suite results:
=======================================
... (tests with result OK removed)
bibformat - correct formatting ... FAIL
bibformat - correct formatting with given template ... FAIL ...
dateutils - conversion of bad text date into Slovak GUI date ... ERROR
dateutils - conversion of good text date into English GUI date ... ok
dateutils - conversion of good text date into Slovak GUI date ... ERROR
...

======================================================================
ERROR: dateutils - conversion of bad text date into Slovak GUI date
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/invenio/dateutils_tests.py",
line 86, in test_convert_bad_to_dategui_sk
    ln='sk')
  File "/usr/lib/python2.4/site-packages/invenio/dateutils.py", line 69,
in convert_datetext_to_dategui
    _ = gettext_set_language(ln)
  File "/usr/lib/python2.4/site-packages/invenio/messages.py", line 28,
in gettext_set_language
    return lang[ln].gettext
KeyError: 'sk'

======================================================================
ERROR: dateutils - conversion of good text date into Slovak GUI date
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/invenio/dateutils_tests.py",
line 70, in test_convert_good_to_dategui_sk
    ln='sk')
  File "/usr/lib/python2.4/site-packages/invenio/dateutils.py", line 69,
in convert_datetext_to_dategui
    _ = gettext_set_language(ln)
  File "/usr/lib/python2.4/site-packages/invenio/messages.py", line 28,
in gettext_set_language
    return lang[ln].gettext
KeyError: 'sk'

======================================================================
FAIL: bibformat - correct formatting
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/invenio/bibformat_engine_tests.py",
line 657, in test_format_record
    self.assertEqual(result,'''<h1>hi</h1> this is my
template\ntest<bfe_non_existing_element must disappear/><test_1  non
prefixed element must stay as any normal tag/>tfrgarbage\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a
default valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n''')
AssertionError: '<h1>hi</h1> this is my
template\ntest<bfe_non_existing_element must disappear/><test_1  non
prefixed element must stay as any normal
tag/>ten<fr>tfr</fr>garbage\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n<br/>test me!<b>ok</b>a default valueeditor\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n' != '<h1>hi</h1> this is
my template\ntest<bfe_non_existing_element must disappear/><test_1  non
prefixed element must stay as any normal tag/>tfrgarbage\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a
default valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n'

======================================================================
FAIL: bibformat - correct formatting with given template
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/invenio/bibformat_engine_tests.py",
line 672, in test_format_with_format_template
    self.assertEqual(result[0],'''<h1>hi</h1> this is my
template\ntest<bfe_non_existing_element must disappear/><test_1  non
prefixed element must stay as any normal tag/>tfrgarbage\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a
default valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n99999''')
AssertionError: '<h1>hi</h1> this is my
template\ntest<bfe_non_existing_element must disappear/><test_1  non
prefixed element must stay as any normal
tag/>ten<fr>tfr</fr>garbage\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n<br/>test me!<b>ok</b>a default valueeditor\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n99999' != '<h1>hi</h1>
this is my template\ntest<bfe_non_existing_element must
disappear/><test_1  non prefixed element must stay as any normal
tag/>tfrgarbage\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default
valueeditor\n<br/>test me!<b>ok</b>a default valueeditor\n<br/>test
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n99999'

----------------------------------------------------------------------
Ran 138 tests in 2.366s

FAILED (failures=2, errors=2)
________________________________________________________________________
_____________________________
________________________________________________________________________
_____________________________




Reply via email to