summaryrefslogtreecommitdiffstats
path: root/urls.py
blob: f38285eeebfc16edb5a32ec0deb5427cbcd40c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from django.conf.urls.defaults import *
from django.db import models

# Uncomment the next two lines to enable the admin:
from django.contrib import admin, databrowse, admindocs
from django.contrib.admindocs import views,urls
from django.contrib.auth import views
from django.views.generic import create_update
from django.views.generic.create_update import update_object
from django.contrib.auth.decorators import login_required
from infopoint.sites.models import *
from infopoint.agenda.models import *
from infopoint.flatpages.models import *
from django.contrib.admindocs import  * 
from django import template, templatetags
from django.template import RequestContext
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import render_to_response
from django.core.exceptions import *
from django.http import Http404
from django.core import urlresolvers
from django.contrib.sites.models import Site
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
import inspect, os, re
from infopoint.agenda.views import  *
from django.contrib.comments.models import Comment
from django.contrib.comments.urls import *
from django import forms
from django.contrib.formtools.preview import FormPreview
from infopoint.agenda.forms import *

admin.autodiscover()

info_dict = {
	'queryset': Site.objects.all(),
}

update = {
	'login_required': True,
	'model': 'location',

}


urlpatterns = patterns('',
# Uncomment the next line to enable admin documentation:
	(r'^group/(?P<object_id>\d+)/$', 'infopoint.agenda.views.justonegroup'),
	(r'^group/(?P<object_id>\d+)/todo/(?P<todo_id>\d+)/close/$', 'infopoint.agenda.views.closegrouptodo'),
	(r'^group/(?P<object_id>\d+)/todo/add/$', 'infopoint.agenda.views.savegrouptodo'),
	(r'^agenda/group/(?P<object_id>\d+)/todo/add/$', 'infopoint.agenda.views.savegrouptodo'),
	(r'^agenda/(?P<object_id>\d+)/(?P<billboard_id>\d+)$', 'infopoint.agenda.billboardviews.one_still_event'),
	(r'^agenda/random/(?P<billboard_id>\d+)$', 'infopoint.agenda.billboardviews.billboard'),
	(r'^agenda/(?P<object_id>\d+)/map/$', 'infopoint.agenda.billboardviews.event_galaxy'),
	(r'^agenda/(?P<object_id>\d+)/cal/$', 'infopoint.agenda.views.ical_one_event'),
	(r'^agenda/user/(?P<object_id>\d+)/cal/$', 'infopoint.agenda.views.ical_user_events'),
	(r'^agenda/user/(?P<object_id>\d+)/busy/$', 'infopoint.agenda.views.ical_user_busytime'),
	(r'^agenda/user/(?P<object_id>\d+)/map/$', 'infopoint.agenda.billboardviews.user_galaxymap'),
	(r'^agenda/location/(?P<object_id>\d+)/map/$', 'infopoint.agenda.billboardviews.location_galaxymap'),
	(r'^agenda/group/(?P<object_id>\d+)/map/$', 'infopoint.agenda.billboardviews.group_galaxymap'),
	(r'^agenda/group/(?P<object_id>\d+)/$', 'infopoint.agenda.views.justonegroup'),
	(r'^agenda/next_events_cal/$', 'infopoint.agenda.views.ical_next_events'),
	(r'^agenda/me/$', 'infopoint.agenda.views.mismensajes'),
	(r'^todo/add/$', 'infopoint.agenda.views.addtodo'),
	(r'^agenda/(?P<event_id>\d+)/todo/(?P<todo_id>\d+)/close/$','infopoint.agenda.views.closetodo'),
	(r'^agenda/(?P<event_id>\d+)/todo/submit/$','infopoint.agenda.views.saveeventtodo'),
	(r'^agenda/(?P<event_id>\d+)/group/add/$','infopoint.agenda.views.addeventtogroupsave'),
	#(r'^todo/create/$',TodoCreateForm(TodoForm)),
	(r'^admin/doc/', include('django.contrib.admindocs.urls')),
	(r'^comments/', include('django.contrib.comments.urls.comments')),
	(r'^comment/(?P<object_id>\d+)/$', 'infopoint.agenda.views.one_comment'),
	(r'^user/login/$', 'django.contrib.auth.views.login'),
# Uncomment the next line for to enable the admin:
	(r'^admin/(.*)', admin.site.root),
	(r'^$', 'django.views.generic.list_detail.object_list', info_dict),
	(r'^site/', include('infopoint.sites.urls')),
	(r'^calendar/', include('infopoint.agenda.urls')),
	(r'^databrowse/(.*)',  login_required(databrowse.site.root)),
	(r'^test/(.*)',  login_required(databrowse.site.root)),
	#       (r'^comments/post/$', CommentFormPreview(CommentForm)),
	#(r'^tasks/add/$', (CommentForm)),
)

urlpatterns += patterns('infopoint.agenda.views',
	(r'^agenda/(?P<object_id>\d+)/$', 'event'),
	(r'^agenda/(?P<object_id>\d+)/adopt/$', 'adoptevent'),
	(r'^agenda/event/(?P<object_id>\d+)/$', 'event'),
	(r'^event/(?P<object_id>\d+)/$', 'event'),
	(r'^agenda/location/(?P<object_id>\d+)/$', 'location'),
	(r'^agenda/$', 'calendar'),
	(r'^random/$', 'random'),
)