fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add editable chunk
[edumed.git]
/
catalogue
/
models.py
diff --git
a/catalogue/models.py
b/catalogue/models.py
index
b42a463
..
f05688d
100644
(file)
--- a/
catalogue/models.py
+++ b/
catalogue/models.py
@@
-144,12
+144,12
@@
class Lesson(models.Model):
def build_html(self, infile=None):
from librarian.parser import WLDocument
def build_html(self, infile=None):
from librarian.parser import WLDocument
- from .publish import HtmlFormat
+ from .publish import HtmlFormat
, OrmDocProvider
if infile is None:
if infile is None:
- wldoc = WLDocument.from_file(self.xml_file.path)
+ wldoc = WLDocument.from_file(self.xml_file.path
, provider=OrmDocProvider
)
else:
else:
- wldoc = WLDocument(infile)
+ wldoc = WLDocument(infile
, provider=OrmDocProvider()
)
html = HtmlFormat(wldoc).build()
self.html_file.save("%s.html" % self.slug,
File(open(html.get_filename())))
html = HtmlFormat(wldoc).build()
self.html_file.save("%s.html" % self.slug,
File(open(html.get_filename())))