Fixed to run and pass all tests.
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 19 Mar 2010 14:57:56 +0000 (15:57 +0100)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 19 Mar 2010 16:17:29 +0000 (17:17 +0100)
13 files changed:
librarian/__init__.py [changed mode: 0755->0644]
librarian/dcparser.py [changed mode: 0755->0644]
librarian/html.py [changed mode: 0755->0644]
librarian/parser.py [changed mode: 0755->0644]
librarian/text.py [changed mode: 0755->0644]
librarian/xslt/book2html.xslt
scripts/normalize.py [changed mode: 0755->0644]
setup.py [changed mode: 0755->0644]
tests/__init__.py [changed mode: 0755->0644]
tests/test_dcparser.py [changed mode: 0755->0644]
tests/test_html.py [changed mode: 0755->0644]
tests/test_text.py [changed mode: 0755->0644]
tests/utils.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 34c493b..582ee98
@@ -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'):
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 3a13737..80f8c63 100755 (executable)
 <!-- ========================================== -->
 <!-- Title page -->
 <xsl:template match="autor_utworu" mode="header">
-    <span class="author editable"><xsl:apply-templates mode="inline" /></span>
+    <span class="author"><xsl:apply-templates mode="inline" /></span>
 </xsl:template>
 
 <xsl:template match="nazwa_utworu" mode="header">
-    <span class="title editable"><xsl:apply-templates mode="inline" /></span>
+    <span class="title"><xsl:apply-templates mode="inline" /></span>
 </xsl:template>
 
 <xsl:template match="dzielo_nadrzedne" mode="header">
 </xsl:template>
 
 <xsl:template match="akap|akap_dialog|akap_cd">
-    <p class="paragraph editable"><xsl:apply-templates mode="inline" /></p>
+    <p class="paragraph"><xsl:apply-templates mode="inline" /></p>
 </xsl:template>
 
 <xsl:template match="strofa">
-    <div class="stanza editable">
+    <div class="stanza">
         <xsl:choose>
             <xsl:when test="count(br) > 0">     
                 <xsl:call-template name="verse">
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index dcb19fc..6914066
@@ -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')
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index ea90626..0c6f8d4
 #    You should have received a copy of the GNU Affero General Public License
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
+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))