From: Ɓukasz Rekucki Date: Fri, 19 Mar 2010 14:57:56 +0000 (+0100) Subject: Fixed to run and pass all tests. X-Git-Tag: 1.7~295 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/895f081f74ce3f116bebb4ef76f5ab3d2e392fef?ds=sidebyside;hp=-c Fixed to run and pass all tests. --- 895f081f74ce3f116bebb4ef76f5ab3d2e392fef diff --git a/librarian/__init__.py b/librarian/__init__.py old mode 100755 new mode 100644 index 34c493b..582ee98 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -117,12 +117,8 @@ def serialize_raw(element): return b -from wl_light import serialize_nl - - SERIALIZERS = { 'raw': serialize_raw, - 'nl': serialize_nl, } def serialize_children(element, format='raw'): diff --git a/librarian/dcparser.py b/librarian/dcparser.py old mode 100755 new mode 100644 diff --git a/librarian/html.py b/librarian/html.py old mode 100755 new mode 100644 diff --git a/librarian/parser.py b/librarian/parser.py old mode 100755 new mode 100644 diff --git a/librarian/text.py b/librarian/text.py old mode 100755 new mode 100644 diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 3a13737..80f8c63 100755 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -435,11 +435,11 @@ - + - + @@ -477,11 +477,11 @@ -

+

-
+
diff --git a/scripts/normalize.py b/scripts/normalize.py old mode 100755 new mode 100644 diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 diff --git a/tests/__init__.py b/tests/__init__.py old mode 100755 new mode 100644 diff --git a/tests/test_dcparser.py b/tests/test_dcparser.py old mode 100755 new mode 100644 diff --git a/tests/test_html.py b/tests/test_html.py old mode 100755 new mode 100644 index dcb19fc..6914066 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -23,7 +23,6 @@ from librarian import html, NoDublinCore from nose.tools import * from utils import get_fixture, remove_output_file - def teardown_transform(): remove_output_file('text', 'asnyk_miedzy_nami.html') diff --git a/tests/test_text.py b/tests/test_text.py old mode 100755 new mode 100644 diff --git a/tests/utils.py b/tests/utils.py old mode 100755 new mode 100644 index ea90626..0c6f8d4 --- a/tests/utils.py +++ b/tests/utils.py @@ -19,11 +19,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +from __future__ import with_statement from os.path import realpath, join, dirname import glob import os - def get_fixture_dir(dir_name): """Returns path to fixtures directory dir_name.""" return realpath(join(dirname(__file__), 'files', dir_name))