Merge branch 'master' of stigma.nowoczesnapolska.org.pl:platforma
[redakcja.git] / apps / api / handlers / text_handler.py
index 5f27a2a..ba8bf71 100755 (executable)
@@ -64,8 +64,7 @@ class DocumentTextHandler(BaseHandler):
             if not chunk:
                 return document.data('xml')
 
             if not chunk:
                 return document.data('xml')
 
-            xdoc = parser.WLDocument.from_string(document.data('xml'),\
-                parse_dublincore=False)
+            xdoc = parser.WLDocument.from_string(document.data('xml'), parse_dublincore=False)
 
             xchunk = xdoc.chunk(chunk)
 
 
             xchunk = xdoc.chunk(chunk)
 
@@ -123,7 +122,7 @@ class DocumentTextHandler(BaseHandler):
                 log.info(data[:600])
                 log.info(chunks)
 
                 log.info(data[:600])
                 log.info(chunks)
 
-                xdoc = parser.WLDocument.from_string(data)               
+                xdoc = parser.WLDocument.from_string(data, parse_dublincore=False)
                 errors = xdoc.merge_chunks(chunks)
 
                 if len(errors):
                 errors = xdoc.merge_chunks(chunks)
 
                 if len(errors):