from django.conf.urls import patterns, url from gnowsys_ndf.ndf.views.group import GroupCreateEditHandler urlpatterns = patterns('gnowsys_ndf.ndf.views.group', url(r'^[/]$', 'group', name='group'), url(r'^/(?P[\w-]+)$', 'group', name='group'), url(r'^/create_group/', GroupCreateEditHandler.as_view(), {'action': 'create'}, name='create_group'), url(r'^/edit_group/', GroupCreateEditHandler.as_view(), {'action': 'edit'}, name='edit_group'), url(r'^/group_publish/(?P[\w-]+)$', 'publish_group', name='publish_group'), url(r'^/switch_group/(?P[\w-]+)$', 'switch_group', name='switch_group'), url(r'^/app_selection/', 'app_selection', name='app_selection'), url(r'^/create_sub_group/', 'create_sub_group', name='create_sub_group'), #url(r'^/(?P[\w-]+)/nroer_groups/?$', 'nroer_groups', name='nroer_groups'), url(r'^/(?P[\w-]+)/value/(?P[\w-]+)/?$', 'group', name='groups_by_agency_type'), ) urlpatterns += patterns('gnowsys_ndf.ndf.views.ajax_views', url(r'^/check_group/', 'checkgroup', name='check_group'), ) urlpatterns += patterns('gnowsys_ndf.ndf.views.notify', url(r'^/notify/join/$', 'notifyuser', name='notifyuser'), url(r'^/notify/remove/$', 'notify_remove_user', name='notifyremuser'), url(r'^/notify/invite_users/$', 'invite_users', name='sendinvitation'), url(r'^/notify/invite_admins/$', 'invite_admins', name='admininvitations'), )