Exemplo n.º 1
0
#-*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from django_remotestorage.utils import autonamed_url

urlpatterns = patterns(
    'django_remotestorage.apps.api.views',
    autonamed_url(r'^storage/(?P<acct>[^/]+)/?(?P<path>.*)$', 'storage'),
)
Exemplo n.º 2
0
#-*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from django_remotestorage.utils import autonamed_url


urlpatterns = patterns(
	'django_remotestorage.apps.api.views',
	autonamed_url(r'^storage/(?P<acct>[^/]+)/?(?P<path>.*)$', 'storage'),
)
Exemplo n.º 3
0
#-*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from django_remotestorage.utils import autonamed_url

urlpatterns = patterns(
    '',
    autonamed_url(
        r'^missing_redirect_uri/?$',
        'django_remotestorage.apps.oauth2.views.missing_redirect_uri'),
    autonamed_url(r'^authorize/?$',
                  'django_remotestorage.apps.oauth2.views.authorize'),
    url(r'^token/?$', 'oauth2app.token.handler', name='token_handler'))
Exemplo n.º 4
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django_remotestorage.utils import autonamed_url

urlpatterns = patterns(
    "django_remotestorage.apps.demo.views",
    autonamed_url(r"^/?$", "storage_client"),
    autonamed_url(r"^receive_token(/|\.html)?$", "storage_token"),
)
Exemplo n.º 5
0
#-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django_remotestorage.utils import autonamed_url

urlpatterns = patterns(
    'django_remotestorage.apps.demo.views',
    autonamed_url(r'^/?$', 'storage_client'),
    autonamed_url(r'^receive_token(/|\.html)?$', 'storage_token'),
)
Exemplo n.º 6
0
#-*- coding: utf-8 -*-

from django.conf.urls import patterns, include, url
from django_remotestorage.utils import autonamed_url


urlpatterns_auth = [
	autonamed_url( r'^login/?$',
		'django_remotestorage.apps.account.views.login' ),
	autonamed_url( r'^logout/?$',
		'django_remotestorage.apps.account.views.logout' ) ]

urlpatterns_auth_management = [
	autonamed_url( r'^signup/?$',
		'django_remotestorage.apps.account.views.signup' ) ]

urlpatterns_client_management = [
	autonamed_url( r'^clients/?$',
		'django_remotestorage.apps.account.views.clients' ),
	autonamed_url( r'^client/(?P<client_id>\d+)/?$',
		'django_remotestorage.apps.account.views.client' ),

	url( r'^client/(?P<client_id>\d+)'
			r'/action/(?P<action>\w+)/?$',
		'django_remotestorage.apps.account.views.client_action',
		name='client_action' ),
	url( r'^client/(?P<client_id>\d+)/range/'
			r'(?P<cap>[^/]+)/action/(?P<action>\w+)/?$',
		'django_remotestorage.apps.account.views.client_action',
		name='client_cap_action' ) ]
Exemplo n.º 7
0
#-*- coding: utf-8 -*-

from django.conf.urls import patterns, include, url
from django_remotestorage.utils import autonamed_url

host_meta_patterns = patterns(
	'django_remotestorage.apps.webfinger.views',
	autonamed_url(r'^.well-known/host-meta(/|\.xml)?$', 'host_meta'),
	autonamed_url(r'^.well-known/host-meta.json/?$', 'host_meta', kwargs=dict(fmt='json')) )

webfinger_patterns = patterns(
	'django_remotestorage.apps.webfinger.views',
	autonamed_url(r'^webfinger(/|\.xml)$', 'webfinger'),
	autonamed_url(r'^webfinger.json/?$', 'webfinger', kwargs=dict(fmt='json')),
	# For clean reverse-urls only
	autonamed_url(r'^webfinger$', 'webfinger', kwargs=dict(fmt='xml')),
	autonamed_url(r'^.well-known/host-meta$', 'host_meta', kwargs=dict(fmt='xml')) )

urlpatterns = patterns('',
	url('', include(host_meta_patterns)),
	url('', include(webfinger_patterns)) )