Move to Pillow-compatible imports.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 16 Jul 2013 09:49:39 +0000 (11:49 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 16 Jul 2013 09:50:30 +0000 (11:50 +0200)
.gitmodules
apps/cover/tests.py
apps/cover/views.py
lib/librarian
requirements.txt

index 56b9c42..004f6f3 100644 (file)
@@ -1,3 +1,3 @@
 [submodule "lib/librarian"]
        path = lib/librarian
-       url = git://github.com/fnp/librarian.git
+       url = git://git.nowoczesnapolska.org.pl/librarian.git
index d3bade2..2f5b304 100644 (file)
@@ -17,4 +17,4 @@ class FlickrTests(TestCase):
         self.assertEqual(form.cleaned_data['title'], u"Pirate StaƄczyk")
         self.assertEqual(form.cleaned_data['license_name'], "CC BY 2.0")
         self.assertEqual(form.cleaned_data['license_url'], "http://creativecommons.org/licenses/by/2.0/deed.en")
-        self.assertEqual(form.cleaned_data['download_url'], "https://farm8.staticflickr.com/7069/6941928577_2a0306f6a6_b.jpg")
+        self.assertEqual(form.cleaned_data['download_url'], "https://farm8.staticflickr.com/7069/6941928577_415844c58e_o.jpg")
index 0c29209..2a21b5c 100644 (file)
@@ -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.
     """
-    import Image
+    from PIL import Image
     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
-    import Image
+    from PIL import Image
     from os import makedirs
     from lxml import etree
     from librarian.cover import WLCover
index 1ffcf32..85ab1e2 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1ffcf32a8d795681f54bd125ca45e908da5ed3fb
+Subproject commit 85ab1e2d4b363dc747eacda08fa254586905cf25
index 997336b..9eb392b 100644 (file)
@@ -4,7 +4,7 @@
 lxml>=2.2.2
 mercurial>=1.6,<1.7
 PyYAML>=3.0
-PIL>=1.1
+Pillow
 oauth2
 httplib2 # oauth2 dependency