delete old xml check
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 18 Oct 2011 09:22:40 +0000 (11:22 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 18 Oct 2011 09:23:35 +0000 (11:23 +0200)
apps/catalogue/views.py

index b6e4c40..6fb5f60 100644 (file)
@@ -242,18 +242,9 @@ def book(request, slug):
         editable = False
 
     task = publishable_error.delay(book)
-    publish_error = t.wait()
+    publish_error = task.wait()
     publishable = publish_error is None
 
-    try:
-        book.assert_publishable()
-    except AssertionError, e:
-        publishable = False
-        publishable_error = e
-    else:
-        publishable = True
-        publishable_error = None
-
     return direct_to_template(request, "catalogue/book_detail.html", extra_context={
         "book": book,
         "publishable": publishable,