from catmaid.history import record_request_action as record_view # A regular expression matching floating point and integer numbers num = r'[-+]?[0-9]*\.?[0-9]+' integer = r'[-+]?[0-9]+' # A regular expression matching lists of integers with comma as delimiter intlist = r'[0-9]+(,[0-9]+)*' # A list of words, not containing commas wordlist= r'\w+(,\w+)*' app_name = 'catmaid' # Add the main index.html page at the root: urlpatterns = [ url(r'^$', ensure_csrf_cookie(CatmaidView.as_view(template_name='catmaid/index.html')), name="home"), url(r'^version$', common.get_catmaid_version) ] # Authentication and permissions urlpatterns += [ url(r'^accounts/login$', authentication.login_user), url(r'^accounts/logout$', authentication.logout_user), url(r'^accounts/(?P<project_id>\d+)/all-usernames$', authentication.all_usernames), url(r'^permissions$', authentication.user_project_permissions), url(r'^classinstance/(?P<ci_id>\d+)/permissions$', authentication.get_object_permissions), url(r'^register$', authentication.register), ] # Users urlpatterns += [
# A regular expression matching floating point and integer numbers num = r'[-+]?[0-9]*\.?[0-9]+' integer = r'[-+]?[0-9]+' # A regular expression matching lists of integers with comma as delimiter intlist = r'[0-9]+(,[0-9]+)*' # A list of words, not containing commas wordlist = r'\w+(,\w+)*' app_name = 'catmaid' # Add the main index.html page at the root: urlpatterns = [ url(r'^$', ensure_csrf_cookie( CatmaidView.as_view(template_name='catmaid/index.html')), name="home"), url(r'^version$', common.get_catmaid_version) ] # Authentication and permissions urlpatterns += [ url(r'^accounts/login$', authentication.login_user), url(r'^accounts/logout$', authentication.logout_user), url(r'^accounts/(?P<project_id>\d+)/all-usernames$', authentication.all_usernames), url(r'^permissions$', authentication.user_project_permissions), url(r'^classinstance/(?P<ci_id>\d+)/permissions$', authentication.get_object_permissions), url(r'^register$', authentication.register), ]
from catmaid.views import CatmaidView, ExportWidgetView from catmaid.control.suppressed_virtual_treenode import SuppressedVirtualTreenodeDetail, SuppressedVirtualTreenodeList # A regular expression matching floating point and integer numbers num = r'[-+]?[0-9]*\.?[0-9]+' integer = r'[-+]?[0-9]+' # A regular expression matching lists of integers with comma as delimiter intlist = r'[0-9]+(,[0-9]+)*' # A list of words, not containing commas wordlist= r'\w+(,\w+)*' # Add the main index.html page at the root: urlpatterns = patterns('', url(r'^$', CatmaidView.as_view(template_name='catmaid/index.html'), name="home"), url(r'^version$', 'catmaid.control.common.get_catmaid_version') ) # Authentication and permissions urlpatterns += patterns('catmaid.control.authentication', (r'^accounts/login$', 'login_user'), (r'^accounts/logout$', 'logout_user'), (r'^accounts/(?P<project_id>\d+)/all-usernames$', 'all_usernames'), (r'^permissions$', 'user_project_permissions'), (r'^classinstance/(?P<ci_id>\d+)/permissions$', 'get_object_permissions'), (r'^register$', 'register'), )
from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from catmaid.views import CatmaidView, ExportWidgetView # A regular expression matching floating point and integer numbers num = r'[-+]?[0-9]*\.?[0-9]+' integer = r'[-+]?[0-9]+' # A regular expression matching lists of integers with comma as delimiter intlist = r'[0-9]+(,[0-9]+)*' # A list of words, not containing commas wordlist= r'\w+(,\w+)*' # Add the main index.html page at the root: urlpatterns = patterns('', url(r'^$', CatmaidView.as_view(template_name='catmaid/index.html'), name="home") ) # Authentication and permissions urlpatterns += patterns('catmaid.control.authentication', (r'^login$', 'login_vnc'), (r'^accounts/login$', 'login_user'), (r'^accounts/logout$', 'logout_user'), (r'^accounts/(?P<project_id>\d+)/all-usernames$', 'all_usernames'), (r'^permissions$', 'user_project_permissions'), (r'^classinstance/(?P<ci_id>\d+)/permissions$', 'get_object_permissions'), (r'^register$', 'register'), )
from django.views.generic import TemplateView from catmaid.views import CatmaidView, ExportWidgetView # A regular expression matching floating point and integer numbers num = r"[-+]?[0-9]*\.?[0-9]+" integer = r"[-+]?[0-9]+" # A regular expression matching lists of integers with comma as delimiter intlist = r"[0-9]+(,[0-9]+)*" # A list of words, not containing commas wordlist = r"\w+(,\w+)*" # Add the main index.html page at the root: urlpatterns = patterns( "", url(r"^$", CatmaidView.as_view(template_name="catmaid/index.html"), name="home"), url(r"^version$", "catmaid.control.common.get_catmaid_version"), ) # Authentication and permissions urlpatterns += patterns( "catmaid.control.authentication", (r"^login$", "login_vnc"), (r"^accounts/login$", "login_user"), (r"^accounts/logout$", "logout_user"), (r"^accounts/(?P<project_id>\d+)/all-usernames$", "all_usernames"), (r"^permissions$", "user_project_permissions"), (r"^classinstance/(?P<ci_id>\d+)/permissions$", "get_object_permissions"), (r"^register$", "register"), )