1 from django.conf.urls.defaults import *
2
3 urlpatterns = patterns('madrona.kmlapp.views',
4 url(r'^user_features/(?P<session_key>\w+)/(?P<input_username>\w+).kml$',
5 'create_kml', name='kmlapp-user-kml'),
6 url(r'^user_features/(?P<session_key>\w+)/(?P<input_username>\w+).kmz$',
7 'create_kml', {'kmz': True}, name='kmlapp-user-kmz'),
8
9 url(r'^user_features_links/(?P<session_key>\w+)/(?P<input_username>\w+).kml$',
10 'create_kml', {'links': True}, name='kmlapp-userlinks-kml'),
11 url(r'^user_features_links/(?P<session_key>\w+)/(?P<input_username>\w+).kmz$',
12 'create_kml', {'links': True, 'kmz': True}, name='kmlapp-userlinks-kmz'),
13
14 url(r'^feature/(?P<session_key>\w+)/(?P<input_uid>\w+).kml$',
15 'create_kml', name='kmlapp-feature-kml'),
16 url(r'^feature/(?P<session_key>\w+)/(?P<input_uid>\w+).kmz$',
17 'create_kml', {'kmz': True}, name='kmlapp-feature-kmz'),
18
19 url(r'^feature_links/(?P<session_key>\w+)/(?P<input_uid>\w+).kml$',
20 'create_kml', {'links': True}, name='kmlapp-feature-links-kml'),
21 url(r'^feature_links/(?P<session_key>\w+)/(?P<input_uid>\w+).kmz$',
22 'create_kml', {'links': True, 'kmz': True}, name='kmlapp-feature-links-kmz'),
23
24 url(r'^shared_by/(?P<session_key>\w+)/group-(?P<input_sharegroup>\d+)_sharedby-(?P<input_shareuser>\d+).kml$',
25 'create_kml', {'links': True}, name='kmlapp-sharedby-kml'),
26 url(r'^shared_by/(?P<session_key>\w+)/group-(?P<input_sharegroup>\d+)_sharedby-(?P<input_shareuser>\d+).kmz$',
27 'create_kml', {'links': True, 'kmz': True}, name='kmlapp-sharedby-kmz'),
28
29 url(r'^public/(?P<session_key>\w+)/public.kml$',
30 'shared_public', name='kmlapp-publicshared-kml'),
31 url(r'^public/(?P<session_key>\w+)/public.kmz$',
32 'shared_public', {'kmz': True}, name='kmlapp-publicshared-kmz'),
33
34 url(r'^shared_links/(?P<session_key>\w+)/sharedby-(?P<input_username>\w+).kml$',
35 'create_shared_kml', name='kmlapp-sharedlinks-kml'),
36 url(r'^shared_links/(?P<session_key>\w+)/sharedby-(?P<input_username>\w+).kmz$',
37 'create_shared_kml', {'kmz': True}, name='kmlapp-sharedlinks-kmz'),
38
39 )
40