Adds FB2 link on book text page,
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 16 Aug 2012 15:26:29 +0000 (17:26 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 16 Aug 2012 15:26:29 +0000 (17:26 +0200)
bugfixes in annotations dictionary and legacy packager

apps/catalogue/management/commands/pack.py
apps/dictionary/tests.py
apps/dictionary/views.py

index 280c0f6..6ecf32d 100755 (executable)
@@ -24,7 +24,7 @@ class Command(BaseCommand):
             help='Exclude specific books by slug')
     )
     help = 'Prepare ZIP package with files of given type.'
-    args = '[%s] output_path.zip' % '|'.join(ftypes)
+    args = '[%s] output_path.zip' % '|'.join(Book.formats)
 
     def handle(self, ftype, path, **options):
         self.style = color_style()
index 0de7c5e..27285cc 100755 (executable)
@@ -13,13 +13,11 @@ class DictionaryTests(WLTestCase):
     def setUp(self):
         WLTestCase.setUp(self)
         self.book_info = BookInfoStub(
-            url=u"http://wolnelektury.pl/example/default-book",
-            about=u"http://wolnelektury.pl/example/URI/default_book",
-            title=u"Default Book",
             author=PersonStub(("Jim",), "Lazy"),
             kind="X-Kind",
             genre="X-Genre",
             epoch="X-Epoch",
+            **info_args(u"Default Book")
         )
 
     def test_book_with_footnote(self):
index a2a814b..4208d9b 100755 (executable)
@@ -16,7 +16,7 @@ class NotesView(ListView):
             objects = objects.filter(sort_key__regex=r"^[0-9]")
         elif self.letter:
             objects = objects.filter(sort_key__startswith=self.letter)
-        return ListView.get_queryset(self)
+        return objects
 
     def get_context_data(self, **kwargs):
         context = super(NotesView, self).get_context_data(**kwargs)