fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix link in a "thanks" template
[edumed.git]
/
catalogue
/
publish.py
diff --git
a/catalogue/publish.py
b/catalogue/publish.py
index
f79a809
..
9f79dae
100755
(executable)
--- a/
catalogue/publish.py
+++ b/
catalogue/publish.py
@@
-3,6
+3,7
@@
from django.core.files.base import ContentFile
from django.core.files import File
from librarian import DocProvider, IOFile
from librarian.pyhtml import EduModuleFormat
from django.core.files import File
from librarian import DocProvider, IOFile
from librarian.pyhtml import EduModuleFormat
+from librarian.pypdf import EduModulePDFFormat
from .models import Lesson, Attachment
from .models import Lesson, Attachment
@@
-60,6
+61,9
@@
class HtmlFormat(EduModuleFormat):
att.file.save(att_name, ContentFile(tempfile.getvalue()))
return att.file.url
att.file.save(att_name, ContentFile(tempfile.getvalue()))
return att.file.url
+class PdfFormat(EduModulePDFFormat):
+ pass
+
class OrmDocProvider(DocProvider):
def by_slug(self, slug):
class OrmDocProvider(DocProvider):
def by_slug(self, slug):