Package omeroweb :: Package webadmin :: Module urls
[hide private]
[frames] | no frames]

Source Code for Module omeroweb.webadmin.urls

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  #  
 4  #  
 5  #  
 6  # Copyright (c) 2008 University of Dundee.  
 7  #  
 8  # This program is free software: you can redistribute it and/or modify 
 9  # it under the terms of the GNU Affero General Public License as 
10  # published by the Free Software Foundation, either version 3 of the 
11  # License, or (at your option) any later version. 
12  #  
13  # This program is distributed in the hope that it will be useful, 
14  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  # GNU Affero General Public License for more details. 
17  #  
18  # You should have received a copy of the GNU Affero General Public License 
19  # along with this program.  If not, see <http://www.gnu.org/licenses/>. 
20  #  
21  # Author: Aleksandra Tarkowska <A(dot)Tarkowska(at)dundee(dot)ac(dot)uk>, 2008. 
22  #  
23  # Version: 1.0 
24  # 
25   
26  import os.path 
27   
28  from django.conf.urls.defaults import * 
29  from django.views.static import serve 
30   
31  from omeroweb.webadmin import views 
32  from omeroweb.webclient import views as webclient_views 
33   
34  # url patterns 
35  urlpatterns = patterns('', 
36   
37      url( r'^$', views.index, name="waindex" ), 
38      url( r'^login/$', webclient_views.login, name="walogin" ), 
39      url( r'^logout/$', views.logout, name="walogout" ), 
40      url( r'^forgottenpassword/$', views.forgotten_password, name="waforgottenpassword" ), 
41      url( r'^experimenters/$', views.experimenters, name="waexperimenters" ), 
42      url( r'^experimenter/(?P<action>[a-z]+)/(?:(?P<eid>[0-9]+)/)?$', views.manage_experimenter, name="wamanageexperimenterid" ), 
43      url( r'^change_password/(?P<eid>[0-9]+)/$', views.manage_password, name="wamanagechangepasswordid" ), 
44      url( r'^groups/$', views.groups, name="wagroups" ), 
45      url( r'^group/(?P<action>((?i)new|create|edit|save))/(?:(?P<gid>[0-9]+)/)?$', views.manage_group, name="wamanagegroupid" ), 
46      url( r'^group_owner/(?P<action>((?i)edit|save))/(?P<gid>[0-9]+)/$', views.manage_group_owner, name="wamanagegroupownerid" ), 
47      url( r'^myaccount/(?:(?P<action>[a-z]+)/)?$', views.my_account, name="wamyaccount" ), 
48      url( r'^stats/$', views.stats, name="wastats" ), 
49      url( r'^drivespace/$', views.drivespace, {'template':'json'}, name="wadrivespace"), 
50      url( r'^load_drivespace/$', views.load_drivespace, name="waloaddrivespace"), 
51   
52      url( r'^change_avatar/(?P<eid>[0-9]+)/(?:(?P<action>[a-z]+)/)?$', views.manage_avatar, name="wamanageavatar"), 
53      url( r'^myphoto/$', views.myphoto, name="wamyphoto"), 
54   
55  ) 
56