fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#961: translator, infobox in online book view
[wolnelektury.git]
/
apps
/
catalogue
/
models.py
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
9c943ca
..
129bb8a
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-479,7
+479,7
@@
class Book(models.Model):
@classmethod
@classmethod
- def from_xml_file(cls, xml_file,
overwrite=False, build_epub=True
):
+ def from_xml_file(cls, xml_file,
**kwargs
):
# use librarian to parse meta-data
book_info = dcparser.parse(xml_file)
# use librarian to parse meta-data
book_info = dcparser.parse(xml_file)
@@
-487,7
+487,7
@@
class Book(models.Model):
xml_file = File(open(xml_file))
try:
xml_file = File(open(xml_file))
try:
- return cls.from_text_and_meta(xml_file, book_info,
overwrite, build_epub=build_epub
)
+ return cls.from_text_and_meta(xml_file, book_info,
**kwargs
)
finally:
xml_file.close()
finally:
xml_file.close()