From: Lukasz Rekucki Date: Tue, 10 Nov 2009 10:39:39 +0000 (+0100) Subject: Aplikacja z motywami X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/058643c116876ba689f46d0fbac52345f60bf440?ds=sidebyside Aplikacja z motywami --- diff --git a/apps/bookthemes/__init__.py b/apps/bookthemes/__init__.py new file mode 100755 index 00000000..e69de29b diff --git a/apps/bookthemes/admin.py b/apps/bookthemes/admin.py new file mode 100755 index 00000000..7ac3e632 --- /dev/null +++ b/apps/bookthemes/admin.py @@ -0,0 +1,4 @@ +from django.contrib import admin +from bookthemes import models + +admin.site.register(models.Theme) diff --git a/apps/bookthemes/fixtures/themes.yaml b/apps/bookthemes/fixtures/themes.yaml new file mode 100644 index 00000000..417f747d --- /dev/null +++ b/apps/bookthemes/fixtures/themes.yaml @@ -0,0 +1,1242 @@ +- model: bookthemes.theme + pk: Alkohol + fields: {description: ""} +- model: bookthemes.theme + pk: Ambicja + fields: {description: ""} +- model: bookthemes.theme + pk: Anioł + fields: {description: ""} +- model: bookthemes.theme + pk: Antysemityzm + fields: {description: ""} +- model: bookthemes.theme + pk: Arkadia + fields: {description: ""} +- model: bookthemes.theme + pk: Artysta + fields: {description: ""} +- model: bookthemes.theme + pk: Bezdomność + fields: {description: ""} +- model: bookthemes.theme + pk: Bezpieczeństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Bieda + fields: {description: ""} +- model: bookthemes.theme + pk: Bijatyka + fields: {description: ""} +- model: bookthemes.theme + pk: Błazen + fields: {description: ""} +- model: bookthemes.theme + pk: Błądzenie + fields: {description: ""} +- model: bookthemes.theme + pk: Błoto + fields: {description: ""} +- model: bookthemes.theme + pk: Bogactwo + fields: {description: ""} +- model: bookthemes.theme + pk: Bóg + fields: {description: ""} +- model: bookthemes.theme + pk: Brat + fields: {description: ""} +- model: bookthemes.theme + pk: Bunt + fields: {description: ""} +- model: bookthemes.theme + pk: Buntownik + fields: {description: ""} +- model: bookthemes.theme + pk: Burza + fields: {description: ""} +- model: bookthemes.theme + pk: Car + fields: {description: ""} +- model: bookthemes.theme + pk: Carpe diem + fields: {description: ""} +- model: bookthemes.theme + pk: Ciemność + fields: {description: ""} +- model: bookthemes.theme + pk: Cień + fields: {description: ""} +- model: bookthemes.theme + pk: Cisza + fields: {description: ""} +- model: bookthemes.theme + pk: Chciwość + fields: {description: ""} +- model: bookthemes.theme + pk: Chleb + fields: {description: ""} +- model: bookthemes.theme + pk: Chłop + fields: {description: ""} +- model: bookthemes.theme + pk: Choroba + fields: {description: ""} +- model: bookthemes.theme + pk: Chrystus + fields: {description: ""} +- model: bookthemes.theme + pk: Chrzest + fields: {description: ""} +- model: bookthemes.theme + pk: Ciało + fields: {description: ""} +- model: bookthemes.theme + pk: Cierpienie + fields: {description: ""} +- model: bookthemes.theme + pk: Cmentarz + fields: {description: ""} +- model: bookthemes.theme + pk: Cnota + fields: {description: ""} +- model: bookthemes.theme + pk: Córka + fields: {description: ""} +- model: bookthemes.theme + pk: Cud + fields: {description: ""} +- model: bookthemes.theme + pk: Czarownika + fields: {description: ""} +- model: bookthemes.theme + pk: Czary + fields: {description: ""} +- model: bookthemes.theme + pk: Czas + fields: {description: ""} +- model: bookthemes.theme + pk: Czyn + fields: {description: ""} +- model: bookthemes.theme + pk: Czyściec + fields: {description: ""} +- model: bookthemes.theme + pk: Dama + fields: {description: ""} +- model: bookthemes.theme + pk: Danse macabre + fields: {description: ""} +- model: bookthemes.theme + pk: Deszcz + fields: {description: ""} +- model: bookthemes.theme + pk: Diabeł + fields: {description: ""} +- model: bookthemes.theme + pk: Dobro + fields: {description: ""} +- model: bookthemes.theme + pk: Dom + fields: {description: ""} +- model: bookthemes.theme + pk: Dorosłość + fields: {description: ""} +- model: bookthemes.theme + pk: Drzewo + fields: {description: ""} +- model: bookthemes.theme + pk: Duch + fields: {description: ""} +- model: bookthemes.theme + pk: Dusza + fields: {description: ""} +- model: bookthemes.theme + pk: Duma + fields: {description: ""} +- model: bookthemes.theme + pk: Dworek + fields: {description: ""} +- model: bookthemes.theme + pk: Dworzanin + fields: {description: ""} +- model: bookthemes.theme + pk: Dwór + fields: {description: ""} +- model: bookthemes.theme + pk: Dzieciństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Dziecko + fields: {description: ""} +- model: bookthemes.theme + pk: Dziedzictwo + fields: {description: ""} +- model: bookthemes.theme + pk: Dziewictwo + fields: {description: ""} +- model: bookthemes.theme + pk: Dźwięk + fields: {description: ""} +- model: bookthemes.theme + pk: Egzorcyzm + fields: {description: ""} +- model: bookthemes.theme + pk: Elita + fields: {description: ""} +- model: bookthemes.theme + pk: Emigrant + fields: {description: ""} +- model: bookthemes.theme + pk: Fałsz + fields: {description: ""} +- model: bookthemes.theme + pk: Filozof + fields: {description: ""} +- model: bookthemes.theme + pk: Fircyk + fields: {description: ""} +- model: bookthemes.theme + pk: Flirt + fields: {description: ""} +- model: bookthemes.theme + pk: Głupiec + fields: {description: ""} +- model: bookthemes.theme + pk: Głupota + fields: {description: ""} +- model: bookthemes.theme + pk: Głód + fields: {description: ""} +- model: bookthemes.theme + pk: Gospodarz + fields: {description: ""} +- model: bookthemes.theme + pk: Gospodyni + fields: {description: ""} +- model: bookthemes.theme + pk: Gość + fields: {description: ""} +- model: bookthemes.theme + pk: Gotycyzm + fields: {description: ""} +- model: bookthemes.theme + pk: Góra + fields: {description: ""} +- model: bookthemes.theme + pk: Gra + fields: {description: ""} +- model: bookthemes.theme + pk: Grób + fields: {description: ""} +- model: bookthemes.theme + pk: Grzech + fields: {description: ""} +- model: bookthemes.theme + pk: Grzeczność + fields: {description: ""} +- model: bookthemes.theme + pk: Gwiazda + fields: {description: ""} +- model: bookthemes.theme + pk: Handel + fields: {description: ""} +- model: bookthemes.theme + pk: Hańba + fields: {description: ""} +- model: bookthemes.theme + pk: Historia + fields: {description: ""} +- model: bookthemes.theme + pk: Honor + fields: {description: ""} +- model: bookthemes.theme + pk: Idealista + fields: {description: ""} +- model: bookthemes.theme + pk: Imię + fields: {description: ""} +- model: bookthemes.theme + pk: Interes + fields: {description: ""} +- model: bookthemes.theme + pk: Jabłka + fields: {description: ""} +- model: bookthemes.theme + pk: Jedzenie + fields: {description: ""} +- model: bookthemes.theme + pk: Jesień + fields: {description: ""} +- model: bookthemes.theme + pk: Kaleka + fields: {description: ""} +- model: bookthemes.theme + pk: Kara + fields: {description: ""} +- model: bookthemes.theme + pk: Karczma + fields: {description: ""} +- model: bookthemes.theme + pk: Klęska + fields: {description: ""} +- model: bookthemes.theme + pk: Kłamstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Kłótnia + fields: {description: ""} +- model: bookthemes.theme + pk: Kobieta + fields: {description: ""} +- model: bookthemes.theme + pk: Kobieta demoniczna + fields: {description: ""} +- model: bookthemes.theme + pk: Kobieta "upadła" + fields: {description: ""} +- model: bookthemes.theme + pk: Kochanek + fields: {description: ""} +- model: bookthemes.theme + pk: Kochanek romantyczny + fields: {description: ""} +- model: bookthemes.theme + pk: Kolonializm + fields: {description: ""} +- model: bookthemes.theme + pk: Kondycja ludzka + fields: {description: ""} +- model: bookthemes.theme + pk: Konflikt + fields: {description: ""} +- model: bookthemes.theme + pk: Konflikt wewnętrzny + fields: {description: ""} +- model: bookthemes.theme + pk: Koniec świata + fields: {description: ""} +- model: bookthemes.theme + pk: Koń + fields: {description: ""} +- model: bookthemes.theme + pk: Korzyść + fields: {description: ""} +- model: bookthemes.theme + pk: Kot + fields: {description: ""} +- model: bookthemes.theme + pk: Kradzież + fields: {description: ""} +- model: bookthemes.theme + pk: Krew + fields: {description: ""} +- model: bookthemes.theme + pk: Król + fields: {description: ""} +- model: bookthemes.theme + pk: Krzywda + fields: {description: ""} +- model: bookthemes.theme + pk: Ksiądz + fields: {description: ""} +- model: bookthemes.theme + pk: Książka + fields: {description: ""} +- model: bookthemes.theme + pk: Księżyc + fields: {description: ""} +- model: bookthemes.theme + pk: Kuchnia + fields: {description: ""} +- model: bookthemes.theme + pk: Kuszenie + fields: {description: ""} +- model: bookthemes.theme + pk: Kwiaty + fields: {description: ""} +- model: bookthemes.theme + pk: Labirynt + fields: {description: ""} +- model: bookthemes.theme + pk: Las + fields: {description: ""} +- model: bookthemes.theme + pk: Lato + fields: {description: ""} +- model: bookthemes.theme + pk: Lekarz + fields: {description: ""} +- model: bookthemes.theme + pk: Lenistwo + fields: {description: ""} +- model: bookthemes.theme + pk: List + fields: {description: ""} +- model: bookthemes.theme + pk: Liberat + fields: {description: ""} +- model: bookthemes.theme + pk: Los + fields: {description: ""} +- model: bookthemes.theme + pk: Lud + fields: {description: ""} +- model: bookthemes.theme + pk: Lustro + fields: {description: ""} +- model: bookthemes.theme + pk: Łzy + fields: {description: ""} +- model: bookthemes.theme + pk: Małżeństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Marzenie + fields: {description: ""} +- model: bookthemes.theme + pk: Maska + fields: {description: ""} +- model: bookthemes.theme + pk: Maszyna + fields: {description: ""} +- model: bookthemes.theme + pk: Matka + fields: {description: ""} +- model: bookthemes.theme + pk: Matka Boska + fields: {description: ""} +- model: bookthemes.theme + pk: Mądrość + fields: {description: ""} +- model: bookthemes.theme + pk: Mąż + fields: {description: ""} +- model: bookthemes.theme + pk: Melancholia + fields: {description: ""} +- model: bookthemes.theme + pk: Mędrzec + fields: {description: ""} +- model: bookthemes.theme + pk: Mężczyzna + fields: {description: ""} +- model: bookthemes.theme + pk: Miasto + fields: {description: ""} +- model: bookthemes.theme + pk: Mieszczanin + fields: {description: ""} +- model: bookthemes.theme + pk: Miłosierdzie + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość niespełniona + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość platoniczna + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość romantyczna + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość silniejsza niż śmierć + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość spełniona + fields: {description: ""} +- model: bookthemes.theme + pk: Miłość tragiczna + fields: {description: ""} +- model: bookthemes.theme + pk: Mizoginia + fields: {description: ""} +- model: bookthemes.theme + pk: Młodość + fields: {description: ""} +- model: bookthemes.theme + pk: Moda + fields: {description: ""} +- model: bookthemes.theme + pk: Modlitwa + fields: {description: ""} +- model: bookthemes.theme + pk: Morderstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Morze + fields: {description: ""} +- model: bookthemes.theme + pk: Motyl + fields: {description: ""} +- model: bookthemes.theme + pk: Mucha + fields: {description: ""} +- model: bookthemes.theme + pk: Muzyka + fields: {description: ""} +- model: bookthemes.theme + pk: Narodziny + fields: {description: ""} +- model: bookthemes.theme + pk: Naród + fields: {description: ""} +- model: bookthemes.theme + pk: Natura + fields: {description: ""} +- model: bookthemes.theme + pk: Nauczyciel + fields: {description: ""} +- model: bookthemes.theme + pk: Nauczycielka + fields: {description: ""} +- model: bookthemes.theme + pk: Nauka + fields: {description: ""} +- model: bookthemes.theme + pk: Niebezpieczeństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Niedziela + fields: {description: ""} +- model: bookthemes.theme + pk: Niemiec + fields: {description: ""} +- model: bookthemes.theme + pk: Nienawiść + fields: {description: ""} +- model: bookthemes.theme + pk: Nieśmiertelność + fields: {description: ""} +- model: bookthemes.theme + pk: Niewola + fields: {description: ""} +- model: bookthemes.theme + pk: Noc + fields: {description: ""} +- model: bookthemes.theme + pk: Nuda + fields: {description: ""} +- model: bookthemes.theme + pk: Obcy + fields: {description: ""} +- model: bookthemes.theme + pk: Obłok + fields: {description: ""} +- model: bookthemes.theme + pk: Obowiązek + fields: {description: ""} +- model: bookthemes.theme + pk: Obraz świata + fields: {description: ""} +- model: bookthemes.theme + pk: Obrzędy + fields: {description: ""} +- model: bookthemes.theme + pk: Obyczaje + fields: {description: ""} +- model: bookthemes.theme + pk: Obywatel + fields: {description: ""} +- model: bookthemes.theme + pk: Odrodzenie przez grób + fields: {description: ""} +- model: bookthemes.theme + pk: Odwaga + fields: {description: ""} +- model: bookthemes.theme + pk: Ofiara + fields: {description: ""} +- model: bookthemes.theme + pk: Ogień + fields: {description: ""} +- model: bookthemes.theme + pk: Ogród + fields: {description: ""} +- model: bookthemes.theme + pk: Ojciec + fields: {description: ""} +- model: bookthemes.theme + pk: Ojczyzna + fields: {description: ""} +- model: bookthemes.theme + pk: Oko + fields: {description: ""} +- model: bookthemes.theme + pk: Okręt + fields: {description: ""} +- model: bookthemes.theme + pk: Okrucieństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Omen + fields: {description: ""} +- model: bookthemes.theme + pk: Opieka + fields: {description: ""} +- model: bookthemes.theme + pk: Organizm + fields: {description: ""} +- model: bookthemes.theme + pk: Otchłań + fields: {description: ""} +- model: bookthemes.theme + pk: Pająk + fields: {description: ""} +- model: bookthemes.theme + pk: Pamięć + fields: {description: ""} +- model: bookthemes.theme + pk: Pan + fields: {description: ""} +- model: bookthemes.theme + pk: Panna młoda + fields: {description: ""} +- model: bookthemes.theme + pk: Państwo + fields: {description: ""} +- model: bookthemes.theme + pk: Patriota + fields: {description: ""} +- model: bookthemes.theme + pk: Piekło + fields: {description: ""} +- model: bookthemes.theme + pk: Pielgrzym + fields: {description: ""} +- model: bookthemes.theme + pk: Pieniądz + fields: {description: ""} +- model: bookthemes.theme + pk: Pies + fields: {description: ""} +- model: bookthemes.theme + pk: Piętno + fields: {description: ""} +- model: bookthemes.theme + pk: Pijaństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Piwnica + fields: {description: ""} +- model: bookthemes.theme + pk: Plotka + fields: {description: ""} +- model: bookthemes.theme + pk: Pobożność + fields: {description: ""} +- model: bookthemes.theme + pk: Pocałunek + fields: {description: ""} +- model: bookthemes.theme + pk: Pochlebstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Poeta + fields: {description: ""} +- model: bookthemes.theme + pk: Poetka + fields: {description: ""} +- model: bookthemes.theme + pk: Poezja + fields: {description: ""} +- model: bookthemes.theme + pk: Podróż + fields: {description: ""} +- model: bookthemes.theme + pk: Podstęp + fields: {description: ""} +- model: bookthemes.theme + pk: Pogrzeb + fields: {description: ""} +- model: bookthemes.theme + pk: Pojedynek + fields: {description: ""} +- model: bookthemes.theme + pk: Pokora + fields: {description: ""} +- model: bookthemes.theme + pk: Pokusa + fields: {description: ""} +- model: bookthemes.theme + pk: Polak + fields: {description: ""} +- model: bookthemes.theme + pk: Polityka + fields: {description: ""} +- model: bookthemes.theme + pk: Polowanie + fields: {description: ""} +- model: bookthemes.theme + pk: Polska + fields: {description: ""} +- model: bookthemes.theme + pk: Portret + fields: {description: ""} +- model: bookthemes.theme + pk: Porwanie + fields: {description: ""} +- model: bookthemes.theme + pk: Poświęcenie + fields: {description: ""} +- model: bookthemes.theme + pk: Potwór + fields: {description: ""} +- model: bookthemes.theme + pk: Powstanie + fields: {description: ""} +- model: bookthemes.theme + pk: Powstaniec + fields: {description: ""} +- model: bookthemes.theme + pk: Pozory + fields: {description: ""} +- model: bookthemes.theme + pk: Pozycja społeczna + fields: {description: ""} +- model: bookthemes.theme + pk: Pożar + fields: {description: ""} +- model: bookthemes.theme + pk: Pożądanie + fields: {description: ""} +- model: bookthemes.theme + pk: Praca + fields: {description: ""} +- model: bookthemes.theme + pk: Praca u podstaw + fields: {description: ""} +- model: bookthemes.theme + pk: Praca organiczna + fields: {description: ""} +- model: bookthemes.theme + pk: Prawda + fields: {description: ""} +- model: bookthemes.theme + pk: Prawnik + fields: {description: ""} +- model: bookthemes.theme + pk: Prometeusz + fields: {description: ""} +- model: bookthemes.theme + pk: Proroctwo + fields: {description: ""} +- model: bookthemes.theme + pk: Prorok + fields: {description: ""} +- model: bookthemes.theme + pk: Próżność + fields: {description: ""} +- model: bookthemes.theme + pk: Przebranie + fields: {description: ""} +- model: bookthemes.theme + pk: Przeczucie + fields: {description: ""} +- model: bookthemes.theme + pk: Przedmurze chrześcijaństwa + fields: {description: ""} +- model: bookthemes.theme + pk: Przekleństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Przekupstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Przemiana + fields: {description: ""} +- model: bookthemes.theme + pk: Przemijanie + fields: {description: ""} +- model: bookthemes.theme + pk: Przemoc + fields: {description: ""} +- model: bookthemes.theme + pk: Przestrzeń + fields: {description: ""} +- model: bookthemes.theme + pk: Przyjaźń + fields: {description: ""} +- model: bookthemes.theme + pk: Przyroda nieożywiona + fields: {description: ""} +- model: bookthemes.theme + pk: Przysięga + fields: {description: ""} +- model: bookthemes.theme + pk: Przywódca + fields: {description: ""} +- model: bookthemes.theme + pk: Ptak + fields: {description: ""} +- model: bookthemes.theme + pk: Pustynia + fields: {description: ""} +- model: bookthemes.theme + pk: Pycha + fields: {description: ""} +- model: bookthemes.theme + pk: Raj + fields: {description: ""} +- model: bookthemes.theme + pk: Realista + fields: {description: ""} +- model: bookthemes.theme + pk: Religia + fields: {description: ""} +- model: bookthemes.theme + pk: Rewolucja + fields: {description: ""} +- model: bookthemes.theme + pk: Robak + fields: {description: ""} +- model: bookthemes.theme + pk: Robotnik + fields: {description: ""} +- model: bookthemes.theme + pk: Rodzina + fields: {description: ""} +- model: bookthemes.theme + pk: Rosja + fields: {description: ""} +- model: bookthemes.theme + pk: Rosjanin + fields: {description: ""} +- model: bookthemes.theme + pk: Rośliny + fields: {description: ""} +- model: bookthemes.theme + pk: Rozczarowanie + fields: {description: ""} +- model: bookthemes.theme + pk: Rozpacz + fields: {description: ""} +- model: bookthemes.theme + pk: Rozstanie + fields: {description: ""} +- model: bookthemes.theme + pk: Rozum + fields: {description: ""} +- model: bookthemes.theme + pk: Ruiny + fields: {description: ""} +- model: bookthemes.theme + pk: Rycerz + fields: {description: ""} +- model: bookthemes.theme + pk: Rzeka + fields: {description: ""} +- model: bookthemes.theme + pk: Salon + fields: {description: ""} +- model: bookthemes.theme + pk: Samobójstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Samolubstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Samotnik + fields: {description: ""} +- model: bookthemes.theme + pk: Samotność + fields: {description: ""} +- model: bookthemes.theme + pk: Sarmata + fields: {description: ""} +- model: bookthemes.theme + pk: Sąsiad + fields: {description: ""} +- model: bookthemes.theme + pk: Sąd + fields: {description: ""} +- model: bookthemes.theme + pk: Sąd Ostateczny + fields: {description: ""} +- model: bookthemes.theme + pk: Sen + fields: {description: ""} +- model: bookthemes.theme + pk: Serce + fields: {description: ""} +- model: bookthemes.theme + pk: Sędzia + fields: {description: ""} +- model: bookthemes.theme + pk: Sielanka + fields: {description: ""} +- model: bookthemes.theme + pk: Sierota + fields: {description: ""} +- model: bookthemes.theme + pk: Siła + fields: {description: ""} +- model: bookthemes.theme + pk: Siostra + fields: {description: ""} +- model: bookthemes.theme + pk: Sława + fields: {description: ""} +- model: bookthemes.theme + pk: Słońce + fields: {description: ""} +- model: bookthemes.theme + pk: Słowo + fields: {description: ""} +- model: bookthemes.theme + pk: Sługa + fields: {description: ""} +- model: bookthemes.theme + pk: Służalczość + fields: {description: ""} +- model: bookthemes.theme + pk: Skąpiec + fields: {description: ""} +- model: bookthemes.theme + pk: Sobowtór + fields: {description: ""} +- model: bookthemes.theme + pk: Społecznik + fields: {description: ""} +- model: bookthemes.theme + pk: Spowiedź + fields: {description: ""} +- model: bookthemes.theme + pk: Sprawiedliwość + fields: {description: ""} +- model: bookthemes.theme + pk: Starość + fields: {description: ""} +- model: bookthemes.theme + pk: Strach + fields: {description: ""} +- model: bookthemes.theme + pk: Strój + fields: {description: ""} +- model: bookthemes.theme + pk: Stworzenie + fields: {description: ""} +- model: bookthemes.theme + pk: Sumienie + fields: {description: ""} +- model: bookthemes.theme + pk: Swaty + fields: {description: ""} +- model: bookthemes.theme + pk: Syberia + fields: {description: ""} +- model: bookthemes.theme + pk: Syn + fields: {description: ""} +- model: bookthemes.theme + pk: Syn marnotrawny + fields: {description: ""} +- model: bookthemes.theme + pk: Syzyf + fields: {description: ""} +- model: bookthemes.theme + pk: Szaleniec + fields: {description: ""} +- model: bookthemes.theme + pk: Szaleństwo + fields: {description: ""} +- model: bookthemes.theme + pk: Szantaż + fields: {description: ""} +- model: bookthemes.theme + pk: Szatan + fields: {description: ""} +- model: bookthemes.theme + pk: Szczęście + fields: {description: ""} +- model: bookthemes.theme + pk: Szkoła + fields: {description: ""} +- model: bookthemes.theme + pk: Szlachcic + fields: {description: ""} +- model: bookthemes.theme + pk: Szpieg + fields: {description: ""} +- model: bookthemes.theme + pk: Sztuka + fields: {description: ""} +- model: bookthemes.theme + pk: Ślub + fields: {description: ""} +- model: bookthemes.theme + pk: Śmiech + fields: {description: ""} +- model: bookthemes.theme + pk: Śmierć + fields: {description: ""} +- model: bookthemes.theme + pk: Śmierć bohaterska + fields: {description: ""} +- model: bookthemes.theme + pk: Śpiew + fields: {description: ""} +- model: bookthemes.theme + pk: Światło + fields: {description: ""} +- model: bookthemes.theme + pk: Świętoszek + fields: {description: ""} +- model: bookthemes.theme + pk: Święty + fields: {description: ""} +- model: bookthemes.theme + pk: Świt + fields: {description: ""} +- model: bookthemes.theme + pk: Tajemnica + fields: {description: ""} +- model: bookthemes.theme + pk: Taniec + fields: {description: ""} +- model: bookthemes.theme + pk: Tchórzostwo + fields: {description: ""} +- model: bookthemes.theme + pk: Teatr + fields: {description: ""} +- model: bookthemes.theme + pk: Testament + fields: {description: ""} +- model: bookthemes.theme + pk: Tęsknota + fields: {description: ""} +- model: bookthemes.theme + pk: Theatrum mundi + fields: {description: ""} +- model: bookthemes.theme + pk: Tłum + fields: {description: ""} +- model: bookthemes.theme + pk: Trucizna + fields: {description: ""} +- model: bookthemes.theme + pk: Trup + fields: {description: ""} +- model: bookthemes.theme + pk: Twórczość + fields: {description: ""} +- model: bookthemes.theme + pk: Uczeń + fields: {description: ""} +- model: bookthemes.theme + pk: Uczta + fields: {description: ""} +- model: bookthemes.theme + pk: Uroda + fields: {description: ""} +- model: bookthemes.theme + pk: Umiarkowanie + fields: {description: ""} +- model: bookthemes.theme + pk: Upadek + fields: {description: ""} +- model: bookthemes.theme + pk: Upiór + fields: {description: ""} +- model: bookthemes.theme + pk: Urzędnik + fields: {description: ""} +- model: bookthemes.theme + pk: Vanitas + fields: {description: ""} +- model: bookthemes.theme + pk: Walka + fields: {description: ""} +- model: bookthemes.theme + pk: Walka klas + fields: {description: ""} +- model: bookthemes.theme + pk: Wampir + fields: {description: ""} +- model: bookthemes.theme + pk: Warszawa + fields: {description: ""} +- model: bookthemes.theme + pk: Wąż + fields: {description: ""} +- model: bookthemes.theme + pk: Wdowa + fields: {description: ""} +- model: bookthemes.theme + pk: Wdowiec + fields: {description: ""} +- model: bookthemes.theme + pk: Wesele + fields: {description: ""} +- model: bookthemes.theme + pk: Wiatr + fields: {description: ""} +- model: bookthemes.theme + pk: Wierność + fields: {description: ""} +- model: bookthemes.theme + pk: Wierzenia + fields: {description: ""} +- model: bookthemes.theme + pk: Wieś + fields: {description: ""} +- model: bookthemes.theme + pk: Wiedza + fields: {description: ""} +- model: bookthemes.theme + pk: Wieża Babel + fields: {description: ""} +- model: bookthemes.theme + pk: Więzienie + fields: {description: ""} +- model: bookthemes.theme + pk: Więzień + fields: {description: ""} +- model: bookthemes.theme + pk: Wina + fields: {description: ""} +- model: bookthemes.theme + pk: Wino + fields: {description: ""} +- model: bookthemes.theme + pk: Wiosna + fields: {description: ""} +- model: bookthemes.theme + pk: Wizja + fields: {description: ""} +- model: bookthemes.theme + pk: Władza + fields: {description: ""} +- model: bookthemes.theme + pk: Własność + fields: {description: ""} +- model: bookthemes.theme + pk: Woda + fields: {description: ""} +- model: bookthemes.theme + pk: Wojna + fields: {description: ""} +- model: bookthemes.theme + pk: Wojna pokoleń + fields: {description: ""} +- model: bookthemes.theme + pk: Wolność + fields: {description: ""} +- model: bookthemes.theme + pk: Wróg + fields: {description: ""} +- model: bookthemes.theme + pk: Wspomnienia + fields: {description: ""} +- model: bookthemes.theme + pk: Współpraca + fields: {description: ""} +- model: bookthemes.theme + pk: Wygnanie + fields: {description: ""} +- model: bookthemes.theme + pk: Wyrzuty sumienia + fields: {description: ""} +- model: bookthemes.theme + pk: Wyspa + fields: {description: ""} +- model: bookthemes.theme + pk: Wzrok + fields: {description: ""} +- model: bookthemes.theme + pk: Zabawa + fields: {description: ""} +- model: bookthemes.theme + pk: Zabobony + fields: {description: ""} +- model: bookthemes.theme + pk: Zamek + fields: {description: ""} +- model: bookthemes.theme + pk: Zaręczyny + fields: {description: ""} +- model: bookthemes.theme + pk: Zaświaty + fields: {description: ""} +- model: bookthemes.theme + pk: Zazdrość + fields: {description: ""} +- model: bookthemes.theme + pk: Zbawienie + fields: {description: ""} +- model: bookthemes.theme + pk: Zbrodnia + fields: {description: ""} +- model: bookthemes.theme + pk: Zbrodniarz + fields: {description: ""} +- model: bookthemes.theme + pk: Zdrada + fields: {description: ""} +- model: bookthemes.theme + pk: Zdrowie + fields: {description: ""} +- model: bookthemes.theme + pk: Zemsta + fields: {description: ""} +- model: bookthemes.theme + pk: Zesłaniec + fields: {description: ""} +- model: bookthemes.theme + pk: Ziarno + fields: {description: ""} +- model: bookthemes.theme + pk: Ziemia + fields: {description: ""} +- model: bookthemes.theme + pk: Zima + fields: {description: ""} +- model: bookthemes.theme + pk: Zło + fields: {description: ""} +- model: bookthemes.theme + pk: Złodziej + fields: {description: ""} +- model: bookthemes.theme + pk: Złoty wiek + fields: {description: ""} +- model: bookthemes.theme + pk: Zmartwychwstanie + fields: {description: ""} +- model: bookthemes.theme + pk: Zwątpienie + fields: {description: ""} +- model: bookthemes.theme + pk: Zwierzęta + fields: {description: ""} +- model: bookthemes.theme + pk: Zwycięstwo + fields: {description: ""} +- model: bookthemes.theme + pk: Żałoba + fields: {description: ""} +- model: bookthemes.theme + pk: Żebrak + fields: {description: ""} +- model: bookthemes.theme + pk: Żołnierz + fields: {description: ""} +- model: bookthemes.theme + pk: Żona + fields: {description: ""} +- model: bookthemes.theme + pk: Życie jako wędrówka + fields: {description: ""} +- model: bookthemes.theme + pk: Życie snem + fields: {description: ""} +- model: bookthemes.theme + pk: Żyd + fields: {description: ""} +- model: bookthemes.theme + pk: Żywioły + fields: {description: ""} diff --git a/apps/bookthemes/models.py b/apps/bookthemes/models.py new file mode 100755 index 00000000..14f3c1d1 --- /dev/null +++ b/apps/bookthemes/models.py @@ -0,0 +1,13 @@ +from django.db import models +from django.utils.translation import ugettext as _ + +# Create your models here. +class Theme(models.Model): + name = models.CharField(name=_("Name"), max_length=64, primary_key=True) + description = models.TextField(name=_("Description"), blank=True) + + class Meta: + verbose_name, verbose_name_plural = (_("theme"), _("themes")) + + def __unicode__(self): + return self.name \ No newline at end of file diff --git a/apps/bookthemes/tests.py b/apps/bookthemes/tests.py new file mode 100755 index 00000000..2247054b --- /dev/null +++ b/apps/bookthemes/tests.py @@ -0,0 +1,23 @@ +""" +This file demonstrates two different styles of tests (one doctest and one +unittest). These will both pass when you run "manage.py test". + +Replace these with more appropriate tests for your application. +""" + +from django.test import TestCase + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.failUnlessEqual(1 + 1, 2) + +__test__ = {"doctest": """ +Another way to test that 1 + 1 is equal to 2. + +>>> 1 + 1 == 2 +True +"""} + diff --git a/apps/bookthemes/urls.py b/apps/bookthemes/urls.py new file mode 100755 index 00000000..5b959ad9 --- /dev/null +++ b/apps/bookthemes/urls.py @@ -0,0 +1,9 @@ +__author__="lreqc" +__date__ ="$2009-09-17 16:16:54$" + +from django.conf.urls.defaults import * + +urlpatterns = patterns('', + (r'^$', 'bookthemes.views.index'), +) + diff --git a/apps/bookthemes/views.py b/apps/bookthemes/views.py new file mode 100755 index 00000000..2bf5a771 --- /dev/null +++ b/apps/bookthemes/views.py @@ -0,0 +1,16 @@ +# Create your views here. + +import logging +log = logging.getLogger('platforma.bookthemes') + +from django.http import HttpResponse +from django.utils import simplejson as json +from bookthemes.models import Theme + +def index(request): + themes = Theme.objects.all().values_list('name', flat=True).order_by('name') + + return HttpResponse(json.dumps(list(themes)), mimetype="application/json") + + + \ No newline at end of file diff --git a/scripts/rip-themes-from-redmine.py b/scripts/rip-themes-from-redmine.py new file mode 100755 index 00000000..379e8539 --- /dev/null +++ b/scripts/rip-themes-from-redmine.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import urllib + +from lxml import html + +URL = "http://redmine.nowoczesnapolska.org.pl/projects/wl-publikacje/wiki/Spis_motyw%C3%B3w_i_temat%C3%B3w_literackich?format=html" +doc = html.parse(URL) + + +for element in doc.xpath('//td'): + print "- model: bookthemes.theme" + print " pk:", element.text_content().strip().encode('utf-8') + print ' fields: {description: ""}'