msgstr ""
"Project-Id-Version: Platforma Redakcyjna\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-07-09 10:15+0200\n"
-"PO-Revision-Date: 2013-07-09 10:15+0100\n"
+"POT-Creation-Date: 2013-07-16 13:22+0200\n"
+"PO-Revision-Date: 2013-07-16 13:22+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org."
"pl>\n"
msgid "File should be UTF-8 encoded."
msgstr "Plik powinien mieć kodowanie UTF-8."
-#: views.py:487 models/book.py:56
+#: views.py:498 models/book.py:56
msgid "books"
msgstr "książki"
-#: views.py:489
+#: views.py:500
msgid "scan gallery"
msgstr "galeria skanów"
msgid "notes"
msgstr "notatki"
-#: models/project.py:19
+#: models/project.py:19 templates/catalogue/book_list/book_list.html:62
msgid "project"
msgstr "projekt"
msgstr "Nie zanotowano aktywności."
#: templates/catalogue/book_list/book.html:7
-#: templates/catalogue/book_list/book.html:27
+#: templates/catalogue/book_list/book.html:28
msgid "Book settings"
msgstr "Ustawienia książki"
-#: templates/catalogue/book_list/book_list.html:21
+#: templates/catalogue/book_list/book_list.html:22
msgid "Show hidden books"
msgstr "Pokaż ukryte książki"
-#: templates/catalogue/book_list/book_list.html:26
+#: templates/catalogue/book_list/book_list.html:27
msgid "Search in book titles"
msgstr "Szukaj w tytułach książek"
-#: templates/catalogue/book_list/book_list.html:31
+#: templates/catalogue/book_list/book_list.html:32
msgid "stage"
msgstr "etap"
-#: templates/catalogue/book_list/book_list.html:33
-#: templates/catalogue/book_list/book_list.html:44
+#: templates/catalogue/book_list/book_list.html:34
+#: templates/catalogue/book_list/book_list.html:45
+#: templates/catalogue/book_list/book_list.html:64
msgid "none"
msgstr "brak"
-#: templates/catalogue/book_list/book_list.html:42
+#: templates/catalogue/book_list/book_list.html:43
msgid "editor"
msgstr "redaktor"
-#: templates/catalogue/book_list/book_list.html:53
+#: templates/catalogue/book_list/book_list.html:54
msgid "status"
msgstr "status"
-#: templates/catalogue/book_list/book_list.html:77
+#: templates/catalogue/book_list/book_list.html:88
#, python-format
msgid "%(c)s book"
msgid_plural "%(c)s books"
msgstr[1] "%(c)s książki"
msgstr[2] "%(c)s książek"
-#: templates/catalogue/book_list/book_list.html:82
+#: templates/catalogue/book_list/book_list.html:93
msgid "No books found."
msgstr "Nie znaleziono książek."
-#: templates/catalogue/book_list/book_list.html:88
+#: templates/catalogue/book_list/book_list.html:99
msgid "Set stage"
msgstr "Ustaw etap"
-#: templates/catalogue/book_list/book_list.html:89
+#: templates/catalogue/book_list/book_list.html:100
msgid "Set user"
msgstr "Przypisz redaktora"
-#: templates/catalogue/book_list/book_list.html:91
+#: templates/catalogue/book_list/book_list.html:102
+msgid "Project"
+msgstr "Projekt"
+
+#: templates/catalogue/book_list/book_list.html:103
msgid "Mark publishable"
msgstr "Oznacz do publikacji"
-#: templates/catalogue/book_list/book_list.html:92
+#: templates/catalogue/book_list/book_list.html:104
msgid "Mark not publishable"
msgstr "Odznacz do publikacji"
-#: templates/catalogue/book_list/book_list.html:93
+#: templates/catalogue/book_list/book_list.html:105
msgid "Other user"
msgstr "Inny użytkownik"
from catalogue import forms
from catalogue import helpers
from catalogue.helpers import active_tab
-from catalogue.models import Book, Chunk, BookPublishRecord, ChunkPublishRecord
+from catalogue.models import Book, Chunk, BookPublishRecord, ChunkPublishRecord, Project
from fileupload.views import UploadView
#
for b in books_affected:
b.touch() # cache
+ project_id = request.POST.get('project')
+ if project_id:
+ try:
+ project = Project.objects.get(pk=int(project_id))
+ except (Project.DoesNotExist, ValueError), e:
+ project = None
+ for c in chunks:
+ book = c.book
+ book.project = project
+ book.save()
+
for c in chunks: c.save()
return HttpResponse("", content_type="text/plain")