app/urls.py
changeset 84 1b31d238ba39
parent 83 3f4f7c540b75
child 86 fd34dd071e5e
--- a/app/urls.py	Tue Aug 19 23:13:24 2008 +0000
+++ b/app/urls.py	Tue Aug 19 23:51:31 2008 +0000
@@ -24,8 +24,16 @@
 urlpatterns = patterns(
     '',
     (r'^$', 'soc.views.site.home.public'),
+
+    # attempt to send User to their dashboard
+    # (will display soc.views.user.roles.public() if "linkname" is not
+    # current logged-in User)    
+    (r'^user/roles/(?P<linkname>[_0-9a-z]+)$',
+     'soc.views.user.roles.dashboard'),
+
     (r'^user/profile$','soc.views.user.profile'),
     (r'^user/profile/(?P<linkname>[_0-9a-z]+)$','soc.views.user.profile'),
+
     (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
      'soc.views.person.profile.edit',
      {'template': 'ghop/person/profile/edit.html'}),