summaryrefslogtreecommitdiffstats
path: root/agenda/urls.py
blob: 71a225034bc796a54a6ccb08b3491f3cc48292bc (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
from infopoint.agenda.models import Event
from django.conf.urls.defaults import *
from django.db import models
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.agenda.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 *
from infopoint.agenda.icalviews import SomeEventCalendar

events_list = Event.events.next_events()

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'^orphan/$', 'orphan_events'),
        (r'^agenda/wishlist/$', 'wishlist'),
        (r'^agenda/wishlist/(?P<wish_id>\d+)/done$', 'closewishitem'),
        (r'^agenda/add/$', 'add_new_event'),
        (r'^cal/(?P<year>\d+)/(?P<month>\d+)/$', 'calendarshape'),
        (r'^agenda/add/submit/$', 'submit_new_event'),
        (r'^$', 'calendar'),
        (r'^random/$', 'random'),
        (r'^agenda/(?P<event_id>\d+)/todo/(?P<todo_id>\d+)/close/$','closetodo'),
        (r'^agenda/(?P<event_id>\d+)/todo/submit/$','saveeventtodo'),
        (r'^agenda/(?P<event_id>\d+)/group/add/$','addeventtogroupsave'),
        (r'^agenda/me/$', 'mismensajes'),
	(r'^group/(?P<object_id>\d+)/$', 'justonegroup'),
	(r'^agenda/group/(?P<object_id>\d+)/$', 'justonegroup'),
        (r'^group/(?P<object_id>\d+)/todo/(?P<todo_id>\d+)/close/$', 'closegrouptodo'),
        (r'^group/(?P<object_id>\d+)/todo/add/$', 'savegrouptodo'),
	(r'^todo/add/$', 'addtodo'),
        (r'^todo/(?P<todo_id>\d+)/close/$', 'closealltodo'),


)

urlpatterns += patterns('infopoint.agenda.icalviews',
        (r'^user/(?P<user_id>\d+)/fb$', 'user_freebusy'),
        (r'^ical/$', SomeEventCalendar() ),
)
urlpatterns += patterns('infopoint.agenda.billboardviews',
        (r'^agenda/map/(?P<object_id>\d+)/$', 'event_galaxy'),
        (r'^agenda/map3/(?P<object_id>\d+)/$', 'event_galaxy_for_map'),
        (r'^agenda/(?P<object_id>\d+)/(?P<billboard_id>\d+)$', 'one_still_event'),
        (r'^agenda/random/(?P<billboard_id>\d+)$', 'billboard'),


)

urlpatterns += patterns('',
        (r'^comments/', include('django.contrib.comments.urls')),
)