示例#1
0
 def setUp(self):
     included_urlpatterns = patterns('tests',
         verb_url('GET',     '^test$', 'method_view'),
         verb_url('POST',    '^test$', 'method_view')
     )
     
     self.urlconf = URLConf(patterns('tests',
         verb_url('GET',     '^test$', 'method_view'),
         verb_url('POST',    '^test$', 'method_view'),
         verb_url('PUT',     '^test$', 'method_view'),
         verb_url('DELETE',  '^test$', 'method_view'),
         verb_url('GET',     '^kwarg', 'kwarg_view', {'key': 'get view'}),
         verb_url('POST',    '^kwarg', 'kwarg_view', {'key': 'post view'}),
         url('^include/', include(included_urlpatterns))
     ))
示例#2
0
 def setUp(self):
     included_urlpatterns = patterns('tests',
         url('^included_view$', 'generic_view')
     )
     
     urlpatterns = patterns('tests',
         ('^tuple$', 'generic_view'),
         url('^url$', 'generic_view'),
         url('^non_string_view$', generic_view),
         url('^view_with_name$', 'generic_view', name='view_with_name'),
         url('^kwargs$', 'kwarg_view', kwargs={'key': 'value'}),
         url('^url_reverse$', 'view_one'),
         url('^non_string_view_reverse$', view_two),
         url('^view_with_name_reverse$', 'view_three', name='view_with_name_reverse'),
         url('^include/', include(included_urlpatterns)),
         url('^csrf_exempt_view$', csrf_exempt_view),
     )
     
     urlpatterns += patterns('',
         url('^prefix' , 'generic_view', prefix='tests'),
     )
     
     self.urlconf = URLConf(urlpatterns)
示例#3
0
#
# Project MOST - Moving Outcomes to Standard Telemedicine Practice
# http://most.crs4.it/
#
# Copyright 2014, CRS4 srl. (http://www.crs4.it/)
# Dual licensed under the MIT or GPL Version 2 licenses.
# See license-GPLv2.txt or license-MIT.txt

from reroute import patterns
from reroute.verbs import verb_url


# MostUser API related urls
urlpatterns = patterns('most.web.medicalrecords.views.simple',
                       (r'^ping/$', 'ping'),
                       (r'^ping/auth/$', 'authenticated_ping')
                       )

urlpatterns += patterns('most.web.medicalrecords.views.patients',
                        verb_url('POST', r'^patients/$', 'create_patient'),
                        verb_url('GET', r'^patients/$', 'get_patients'),
                        verb_url('PUT', r'^patients/(?P<patient_uuid>.*)/$', 'update_patient'),
                        verb_url('GET', r'^patients/(?P<patient_uuid>.*)/$', 'get_patient'),
                        verb_url('DELETE', r'^patients/(?P<patient_uuid>.*)/$', 'delete_patient'),
                        )

urlpatterns += patterns('most.web.medicalrecords.views.ehr',
                        (r'^ehr/status/$', 'get_status'),  # Get Status of pyehr dbservice service

                        verb_url('GET', r'^ehr/(?P<patient_uuid>.*)/records/(?P<record_uuid>.*)/$',
                                 'get_ehr_record_for_patient'), #
示例#4
0
from reroute import handler404, handler500, patterns, url, include
from reroute.verbs import verb_url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$',               'guples.views.home'),

    # Heroku-specific routes
	verb_url('POST',         r'^heroku/resources$',                        'guples.views.heroku_provision'),
	verb_url('DELETE',       r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_deprovision'),
	verb_url('PUT',          r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_planchange'),
	verb_url('GET',          r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_sso_for_resource'),
	verb_url('POST',         r'^sso/login$',                               'guples.views.heroku_sso'),	
	verb_url('GET',          r'^heroku/ssolanding$',                       'guples.views.heroku_sso_landing'),
)
示例#5
0
from reroute import handler404, handler500, patterns, url, include
from reroute.verbs import verb_url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
    "",
    url(r"^$", "guples.views.home"),
    # Heroku-specific routes
    verb_url("POST", r"^heroku/resources$", "guples.views.heroku_provision"),
    verb_url("DELETE", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_deprovision"),
    verb_url("PUT", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_planchange"),
    verb_url("GET", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_sso_for_resource"),
    verb_url("POST", r"^sso/login$", "guples.views.heroku_sso"),
    verb_url("GET", r"^heroku/ssolanding$", "guples.views.heroku_sso_landing"),
)