summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoretienne2010-03-27 17:06:03 +0000
committeretienne2010-03-27 17:06:03 +0000
commit95729368a48257b110ea33dfb005785f8ed6734f (patch)
tree8b99b375a4b4a2e121a9192910af15485ea2b7c3
parent8ded76ae513b38d14773449e46543b54cf48ef49 (diff)
Rearrange directories - include documentation
-rwxr-xr-xdocs/generate5
-rw-r--r--docs/style.css67
-rw-r--r--papillon/__init__.py (renamed from __init__.py)0
-rw-r--r--papillon/locale/fr/LC_MESSAGES/django.po (renamed from locale/fr/LC_MESSAGES/django.po)0
-rwxr-xr-xpapillon/manage.py (renamed from manage.py)0
-rwxr-xr-xpapillon/poll_cleaning.py (renamed from poll_cleaning.py)0
-rw-r--r--papillon/polls/__init__.py (renamed from polls/__init__.py)0
-rw-r--r--papillon/polls/admin.py (renamed from polls/admin.py)0
-rw-r--r--papillon/polls/feeds.py (renamed from polls/feeds.py)0
-rw-r--r--papillon/polls/forms.py (renamed from polls/forms.py)0
-rw-r--r--papillon/polls/models.py (renamed from polls/models.py)0
-rw-r--r--papillon/polls/templatetags/__init__.py (renamed from polls/templatetags/__init__.py)0
-rw-r--r--papillon/polls/templatetags/get_range.py (renamed from polls/templatetags/get_range.py)0
-rw-r--r--papillon/polls/views.py (renamed from polls/views.py)0
-rw-r--r--papillon/settings.py (renamed from settings.py)0
-rw-r--r--papillon/static/bg.jpg (renamed from static/bg.jpg)bin3473 -> 3473 bytes
-rw-r--r--papillon/static/styles.css (renamed from static/styles.css)0
-rw-r--r--papillon/static/textareas.js (renamed from static/textareas.js)0
-rw-r--r--papillon/templates/base.html (renamed from templates/base.html)0
-rw-r--r--papillon/templates/category.html (renamed from templates/category.html)0
-rw-r--r--papillon/templates/create.html (renamed from templates/create.html)0
-rw-r--r--papillon/templates/edit.html (renamed from templates/edit.html)0
-rw-r--r--papillon/templates/editChoices.html (renamed from templates/editChoices.html)0
-rw-r--r--papillon/templates/editChoicesAdmin.html (renamed from templates/editChoicesAdmin.html)0
-rw-r--r--papillon/templates/editChoicesUser.html (renamed from templates/editChoicesUser.html)0
-rw-r--r--papillon/templates/feeds/poll_description.html (renamed from templates/feeds/poll_description.html)0
-rw-r--r--papillon/templates/main.html (renamed from templates/main.html)0
-rw-r--r--papillon/templates/vote.html (renamed from templates/vote.html)0
-rw-r--r--papillon/urls.py (renamed from urls.py)0
-rwxr-xr-xscripts/poll_cleaning.sh8
30 files changed, 80 insertions, 0 deletions
diff --git a/docs/generate b/docs/generate
new file mode 100755
index 0000000..936ba03
--- /dev/null
+++ b/docs/generate
@@ -0,0 +1,5 @@
+#!/bin/sh
+txt2tags --encoding utf-8 --css-sugar --style style.css --toc -t xhtml -o INSTALL.html INSTALL.t2t
+txt2tags --encoding utf-8 --toc -t txt -o INSTALL INSTALL.t2t
+awk '{gsub("\t"," ");print}' INSTALL > ../INSTALL
+rm INSTALL
diff --git a/docs/style.css b/docs/style.css
new file mode 100644
index 0000000..5ba1a2f
--- /dev/null
+++ b/docs/style.css
@@ -0,0 +1,67 @@
+html{
+background-color:#dfcbff;
+font-family:arial;
+font-size:80%;
+}
+
+body{
+padding:20px;
+background-color:white;
+}
+
+a{
+color:#b400ff;
+}
+
+h1{
+font-size:22px;
+margin-left:auto;
+margin-right:auto;
+margin-bottom:10px;
+padding-left:20px;
+color:white;
+background-color:#b488ff;
+}
+
+h2{
+font-size:18px;
+padding-left:20px;
+color:#b400ff;
+}
+
+h3{
+padding-left:20px;
+font-weight:normal;
+font-style:italic;
+color:#b400ff;
+}
+
+pre{
+background-color:#dfcbff;
+padding:10px 6px;
+}
+
+table{
+border-spacing:0px;
+border:1px solid;
+border-right:None;
+}
+
+td, th, tr{
+border:None;
+margin:0;
+padding:0;
+border-spacing:0px;
+border-right:1px solid;
+}
+
+td{
+padding:4px 8px;
+}
+
+th{
+background-color:#dfcbff;
+padding:8px;
+border-bottom:1px solid;
+}
+
diff --git a/__init__.py b/papillon/__init__.py
index e69de29..e69de29 100644
--- a/__init__.py
+++ b/papillon/__init__.py
diff --git a/locale/fr/LC_MESSAGES/django.po b/papillon/locale/fr/LC_MESSAGES/django.po
index 4d09e84..4d09e84 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/papillon/locale/fr/LC_MESSAGES/django.po
diff --git a/manage.py b/papillon/manage.py
index bcdd55e..bcdd55e 100755
--- a/manage.py
+++ b/papillon/manage.py
diff --git a/poll_cleaning.py b/papillon/poll_cleaning.py
index 993a5b4..993a5b4 100755
--- a/poll_cleaning.py
+++ b/papillon/poll_cleaning.py
diff --git a/polls/__init__.py b/papillon/polls/__init__.py
index e69de29..e69de29 100644
--- a/polls/__init__.py
+++ b/papillon/polls/__init__.py
diff --git a/polls/admin.py b/papillon/polls/admin.py
index 2207c60..2207c60 100644
--- a/polls/admin.py
+++ b/papillon/polls/admin.py
diff --git a/polls/feeds.py b/papillon/polls/feeds.py
index 2d52dc7..2d52dc7 100644
--- a/polls/feeds.py
+++ b/papillon/polls/feeds.py
diff --git a/polls/forms.py b/papillon/polls/forms.py
index 3a151aa..3a151aa 100644
--- a/polls/forms.py
+++ b/papillon/polls/forms.py
diff --git a/polls/models.py b/papillon/polls/models.py
index f8b3b22..f8b3b22 100644
--- a/polls/models.py
+++ b/papillon/polls/models.py
diff --git a/polls/templatetags/__init__.py b/papillon/polls/templatetags/__init__.py
index e69de29..e69de29 100644
--- a/polls/templatetags/__init__.py
+++ b/papillon/polls/templatetags/__init__.py
diff --git a/polls/templatetags/get_range.py b/papillon/polls/templatetags/get_range.py
index b9d8328..b9d8328 100644
--- a/polls/templatetags/get_range.py
+++ b/papillon/polls/templatetags/get_range.py
diff --git a/polls/views.py b/papillon/polls/views.py
index e9ef572..e9ef572 100644
--- a/polls/views.py
+++ b/papillon/polls/views.py
diff --git a/settings.py b/papillon/settings.py
index 85ae8c8..85ae8c8 100644
--- a/settings.py
+++ b/papillon/settings.py
diff --git a/static/bg.jpg b/papillon/static/bg.jpg
index 7653c63..7653c63 100644
--- a/static/bg.jpg
+++ b/papillon/static/bg.jpg
Binary files differ
diff --git a/static/styles.css b/papillon/static/styles.css
index c329905..c329905 100644
--- a/static/styles.css
+++ b/papillon/static/styles.css
diff --git a/static/textareas.js b/papillon/static/textareas.js
index fec83b8..fec83b8 100644
--- a/static/textareas.js
+++ b/papillon/static/textareas.js
diff --git a/templates/base.html b/papillon/templates/base.html
index b673f24..b673f24 100644
--- a/templates/base.html
+++ b/papillon/templates/base.html
diff --git a/templates/category.html b/papillon/templates/category.html
index 55aa084..55aa084 100644
--- a/templates/category.html
+++ b/papillon/templates/category.html
diff --git a/templates/create.html b/papillon/templates/create.html
index 7c3d2b3..7c3d2b3 100644
--- a/templates/create.html
+++ b/papillon/templates/create.html
diff --git a/templates/edit.html b/papillon/templates/edit.html
index 7ef4f14..7ef4f14 100644
--- a/templates/edit.html
+++ b/papillon/templates/edit.html
diff --git a/templates/editChoices.html b/papillon/templates/editChoices.html
index 1082d30..1082d30 100644
--- a/templates/editChoices.html
+++ b/papillon/templates/editChoices.html
diff --git a/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html
index a7798bf..a7798bf 100644
--- a/templates/editChoicesAdmin.html
+++ b/papillon/templates/editChoicesAdmin.html
diff --git a/templates/editChoicesUser.html b/papillon/templates/editChoicesUser.html
index 0d2b2c1..0d2b2c1 100644
--- a/templates/editChoicesUser.html
+++ b/papillon/templates/editChoicesUser.html
diff --git a/templates/feeds/poll_description.html b/papillon/templates/feeds/poll_description.html
index 7522a5a..7522a5a 100644
--- a/templates/feeds/poll_description.html
+++ b/papillon/templates/feeds/poll_description.html
diff --git a/templates/main.html b/papillon/templates/main.html
index 8a09830..8a09830 100644
--- a/templates/main.html
+++ b/papillon/templates/main.html
diff --git a/templates/vote.html b/papillon/templates/vote.html
index eb1ae21..eb1ae21 100644
--- a/templates/vote.html
+++ b/papillon/templates/vote.html
diff --git a/urls.py b/papillon/urls.py
index 1e35a7b..1e35a7b 100644
--- a/urls.py
+++ b/papillon/urls.py
diff --git a/scripts/poll_cleaning.sh b/scripts/poll_cleaning.sh
new file mode 100755
index 0000000..0635007
--- /dev/null
+++ b/scripts/poll_cleaning.sh
@@ -0,0 +1,8 @@
+# Cron jobs
+
+export DJANGO_SETTINGS_MODULE=papillon.settings
+
+#0 3 * * * python /path/to/maintenance/script.py
+./poll_cleaning.py
+
+