Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/polls/urls.py')
-rw-r--r--webapp/polls/urls.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/webapp/polls/urls.py b/webapp/polls/urls.py
index 2c5e2ef..aff1ae0 100644
--- a/webapp/polls/urls.py
+++ b/webapp/polls/urls.py
@@ -4,7 +4,18 @@ from polls.views import *
urlpatterns = patterns('',
- url(r'^builder/$', BuilderView.as_view(), name="builder"),
- url(r'^success/(?P<file_name>[a-zA-Z0-9_.-]+)/$',
- SucessView.as_view(), name="success"),
+ # Poll
+ url(r'^$', PollListView.as_view(), name="list"),
+ url(r'^add/$', PollFormView.as_view(), name="add"),
+ url(r'^edit/(?P<id>[0-9A-Fa-f]{24})/$',
+ PollFormView.as_view(), name="edit"),
+
+ # Poll structure
+ url(r'^structure/(?P<poll_id>[0-9A-Fa-f]{24})/$',
+ StructureFormView.as_view(), name="structure.builder"),
+ url(r'^download/(?P<poll_id>[0-9A-Fa-f]{24})/$',
+ 'polls.views.download_poll', name="download"),
+
+ url(r'^option/thumb/(?P<poll_id>[0-9A-Fa-f]{24})/(?P<img_name>.*)/$',
+ 'polls.views.opt_thumb')
)