fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow filtering by project
[redakcja.git]
/
apps
/
cover
/
views.py
diff --git
a/apps/cover/views.py
b/apps/cover/views.py
index
0c29209
..
2a21b5c
100644
(file)
--- a/
apps/cover/views.py
+++ b/
apps/cover/views.py
@@
-25,7
+25,7
@@
def preview(request, book, chunk=None, rev=None):
If chunk and rev number are given, use version from given revision.
If rev is not given, use publishable version.
"""
If chunk and rev number are given, use version from given revision.
If rev is not given, use publishable version.
"""
- import Image
+
from PIL
import Image
from librarian.cover import WLCover
from librarian.dcparser import BookInfo
from librarian.cover import WLCover
from librarian.dcparser import BookInfo
@@
-56,7
+56,7
@@
def preview(request, book, chunk=None, rev=None):
@require_POST
def preview_from_xml(request):
from hashlib import sha1
@require_POST
def preview_from_xml(request):
from hashlib import sha1
- import Image
+
from PIL
import Image
from os import makedirs
from lxml import etree
from librarian.cover import WLCover
from os import makedirs
from lxml import etree
from librarian.cover import WLCover