From bd743f7ae0f46d0d2a68f80e3c3cf14313d61aa3 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 4 Oct 2011 17:00:34 +0200 Subject: [PATCH] fixes --- apps/catalogue/management/commands/merge_books.py | 4 ++-- apps/catalogue/models/book.py | 2 ++ apps/catalogue/templates/catalogue/book_detail.html | 5 ++++- apps/catalogue/views.py | 11 ++++++----- redakcja/settings/common.py | 7 ++++++- redakcja/settings/compress.py | 2 +- redakcja/static/css/filelist.css | 12 ++++++++++-- 7 files changed, 31 insertions(+), 12 deletions(-) diff --git a/apps/catalogue/management/commands/merge_books.py b/apps/catalogue/management/commands/merge_books.py index 00014dfd..aec113ed 100755 --- a/apps/catalogue/management/commands/merge_books.py +++ b/apps/catalogue/management/commands/merge_books.py @@ -111,8 +111,8 @@ class Command(BaseCommand): force = options.get('force') guess = options.get('guess') dry_run = options.get('dry_run') - new_slug = options.get('new_slug') - new_title = options.get('new_title') + new_slug = options.get('new_slug').decode('utf-8') + new_title = options.get('new_title').decode('utf-8') verbose = options.get('verbose') if guess: diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index 9f809b86..1b043a47 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -278,6 +278,8 @@ class Book(models.Model): """ Publishes a book on behalf of a (local) user. """ + raise NotImplementedError("Publishing not possible yet.") + from apiclient import api_call changes = self.get_current_changes(publishable=True) diff --git a/apps/catalogue/templates/catalogue/book_detail.html b/apps/catalogue/templates/catalogue/book_detail.html index b93fce45..8e9c1f10 100755 --- a/apps/catalogue/templates/catalogue/book_detail.html +++ b/apps/catalogue/templates/catalogue/book_detail.html @@ -79,6 +79,8 @@ {% endcomment %}

+ {% trans "This book cannot be published yet" %} + {% comment %}