author | Todd Larsen <tlarsen@google.com> |
Wed, 20 Aug 2008 02:30:44 +0000 | |
changeset 95 | 0ed68c85fd87 |
parent 86 | fd34dd071e5e |
child 132 | 15d89c284106 |
permissions | -rw-r--r-- |
31
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
1 |
# Copyright 2008 the Melange authors. |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
2 |
# |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
4 |
# you may not use this file except in compliance with the License. |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
5 |
# You may obtain a copy of the License at |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
6 |
# |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
8 |
# |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
9 |
# Unless required by applicable law or agreed to in writing, software |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
12 |
# See the License for the specific language governing permissions and |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
13 |
# limitations under the License. |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
14 |
|
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
15 |
__authors__ = [ |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
16 |
'"Augie Fackler" <durin42@gmail.com>', |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
66
diff
changeset
|
17 |
'"Pawel Solyga" <pawel.solyga@gmail.com>', |
31
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
18 |
] |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
19 |
|
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
20 |
|
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
21 |
from django.conf.urls.defaults import * |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
22 |
|
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
23 |
|
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
24 |
urlpatterns = patterns( |
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
25 |
'', |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
66
diff
changeset
|
26 |
(r'^$', 'soc.views.site.home.public'), |
84
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
27 |
|
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
28 |
# attempt to send User to their dashboard |
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
29 |
# (will display soc.views.user.roles.public() if "linkname" is not |
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
30 |
# current logged-in User) |
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
31 |
(r'^user/roles/(?P<linkname>[_0-9a-z]+)$', |
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
32 |
'soc.views.user.roles.dashboard'), |
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
33 |
|
86
fd34dd071e5e
Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base
Todd Larsen <tlarsen@google.com>
parents:
84
diff
changeset
|
34 |
(r'^user/profile$', 'soc.views.user.profile.edit'), |
fd34dd071e5e
Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base
Todd Larsen <tlarsen@google.com>
parents:
84
diff
changeset
|
35 |
(r'^user/profile/(?P<linkname>[_0-9a-z]+)$', |
fd34dd071e5e
Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base
Todd Larsen <tlarsen@google.com>
parents:
84
diff
changeset
|
36 |
'soc.views.user.profile.edit'), |
84
1b31d238ba39
Flesh out the user/roles placeholders a little bit more.
Todd Larsen <tlarsen@google.com>
parents:
83
diff
changeset
|
37 |
|
66
8c86470746fc
Finished migrating the "proto" app (which only contained a Person profile edit
Todd Larsen <tlarsen@google.com>
parents:
54
diff
changeset
|
38 |
(r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$', |
8c86470746fc
Finished migrating the "proto" app (which only contained a Person profile edit
Todd Larsen <tlarsen@google.com>
parents:
54
diff
changeset
|
39 |
'soc.views.person.profile.edit', |
8c86470746fc
Finished migrating the "proto" app (which only contained a Person profile edit
Todd Larsen <tlarsen@google.com>
parents:
54
diff
changeset
|
40 |
{'template': 'ghop/person/profile/edit.html'}), |
8c86470746fc
Finished migrating the "proto" app (which only contained a Person profile edit
Todd Larsen <tlarsen@google.com>
parents:
54
diff
changeset
|
41 |
(r'^org/profile/(?P<program>[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$', |
8c86470746fc
Finished migrating the "proto" app (which only contained a Person profile edit
Todd Larsen <tlarsen@google.com>
parents:
54
diff
changeset
|
42 |
'soc.views.person.profile.edit'), |
31
8b43c541afa7
First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff
changeset
|
43 |
) |