from django.conf import urls import common from autotest_lib.frontend import settings, urls_common urlpatterns, debug_patterns = (urls_common.generate_patterns( 'frontend.tko', 'TkoClient')) urlpatterns += urls.patterns( '', (r'^(?:|noauth/)jsonp_rpc/', 'frontend.tko.views.handle_jsonp_rpc'), (r'^(?:|noauth/)csv/', 'frontend.tko.views.handle_csv'), (r'^(?:|noauth/)plot/', 'frontend.tko.views.handle_plot')) if settings.DEBUG: urlpatterns += debug_patterns
from django.conf.urls import defaults try: import autotest.common as common except ImportError: import common from autotest_lib.frontend import settings, urls_common from autotest_lib.frontend.tko import resources urlpatterns, debug_patterns = ( urls_common.generate_patterns('frontend.tko', 'TkoClient')) resource_patterns = defaults.patterns( '', (r'^/?$', resources.ResourceDirectory.dispatch_request), (r'^test_results/?$', resources.TestResultCollection.dispatch_request), (r'^test_results/(?P<test_id>\d+)/?$', resources.TestResult.dispatch_request), ) urlpatterns += defaults.patterns( '', (r'^jsonp_rpc/', 'frontend.tko.views.handle_jsonp_rpc'), (r'^csv/', 'frontend.tko.views.handle_csv'), (r'^plot/', 'frontend.tko.views.handle_plot'), (r'^resources/', defaults.include(resource_patterns))) if settings.DEBUG: urlpatterns += debug_patterns
from django.conf.urls import defaults import common from autotest_lib.frontend import settings, urls_common urlpatterns, debug_patterns = ( urls_common.generate_patterns('frontend.planner', 'TestPlannerClient')) if settings.DEBUG: urlpatterns += debug_patterns
from django.conf import urls from autotest_lib.frontend import settings, urls_common from autotest_lib.frontend.afe.feeds import feed feeds = {'jobs': feed.JobFeed} urlpatterns, debug_patterns = (urls_common.generate_patterns( 'frontend.afe', 'AfeClient')) # File upload urlpatterns += urls.patterns( '', (r'^upload/', 'frontend.afe.views.handle_file_upload')) # Job feeds debug_patterns += urls.patterns( '', (r'^model_doc/', 'frontend.afe.views.model_documentation'), (r'^feeds/(?P<url>.*)/$', 'frontend.afe.feeds.feed.feed_view', { 'feed_dict': feeds })) if settings.DEBUG: urlpatterns += debug_patterns
from django.conf.urls import defaults from autotest_lib.frontend import settings, urls_common from autotest_lib.frontend.afe.feeds import feed from autotest_lib.frontend.afe import resources feeds = { 'jobs' : feed.JobFeed } urlpatterns, debug_patterns = ( urls_common.generate_patterns('frontend.afe', 'AfeClient')) resource_patterns = defaults.patterns( '', (r'^/?$', resources.ResourceDirectory.dispatch_request), (r'^atomic_group_classes/?$', resources.AtomicGroupClassCollection.dispatch_request), (r'^atomic_group_classes/(?P<ag_name>.+?)/?$', resources.AtomicGroupClass.dispatch_request), (r'^atomic_taggings/?$', resources.AtomicLabelTaggingCollection.dispatch_request), (r'^atomic_taggings/(?P<ag_name>.+?),(?P<label_name>.+?)/?$', resources.AtomicLabelTagging.dispatch_request), (r'^labels/?$', resources.LabelCollection.dispatch_request), (r'^labels/(?P<label_name>.+?)/?$', resources.Label.dispatch_request), (r'^users/?$', resources.UserCollection.dispatch_request), (r'^users/(?P<username>[@\w]+)/?$', resources.User.dispatch_request), (r'^user_acls/?$', resources.UserAclMembershipCollection.dispatch_request), (r'^user_acls/(?P<username>.+?),(?P<acl_name>.+?)/?$', resources.UserAclMembership.dispatch_request),