# # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('myapp/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'myapp/index': 'myapp.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='myapp.views.index'), Rule('/metabolic/global/<pathway_id>', endpoint='globalmetabolism', view='myapp.views.globalmetabolism'), Rule('/metabolic/pathway/<pathway_id>', endpoint='pathway', view='myapp.views.pathway')) ]
# -*- coding: utf-8 -*- """ Kay gaema test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.auth_testapp.views.index'), Rule('/secret', endpoint='secret', view='kay.tests.auth_testapp.views.secret'), Rule('/c/secret', endpoint='c_secret', view=('kay.tests.auth_testapp.views.SecretHandler', (), {})), ) ]
# -*- coding: utf-8 -*- """ Kay URL dispatch setting. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/_ah/queue/deferred', endpoint='deferred', view='kay.handlers.task.task_handler'), Rule('/maintenance_page', endpoint='_internal/maintenance_page', view='kay._internal.views.maintenance_page'), ) ]
# -*- coding: utf-8 -*- """ Kay gaema test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.gaema_testapp.views.index'), Rule('/a/<domain_name>/secret', endpoint='secret', view='kay.tests.gaema_testapp.views.secret'), ) ]
# -*- coding: utf-8 -*- """ kay.nuke.urls :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='main', view='kay.ext.nuke.views.main_handler'), Rule('/delete', endpoint='delete', view='kay.ext.nuke.views.mass_delete'), ) ]
Kay test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import ( ViewGroup, Rule ) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.views.index'), Rule('/countup', endpoint='countup', view='kay.tests.views.countup'), Rule('/index2', endpoint='index2', view='kay.tests.views.index2'), Rule('/no_decorator', endpoint='no_decorator', view='kay.tests.views.no_decorator'), Rule('/class_based_test_root/', endpoint='maintenance_check', view=('kay.tests.views.MaintenanceCheck',(), {})), Rule('/class_based_test_root/index2', endpoint='maintenance_check_with_arg', view=('kay.tests.views.MaintenanceCheckWithArgument',(), {})), Rule('/oldpage', endpoint='oldpage', redirect_to='newpage', view='kay.tests.views.oldpage'), Rule('/newpage', endpoint='newpage', view='kay.tests.views.newpage'), Rule('/cron', endpoint='cron', view='kay.tests.views.cron'), Rule('/class_based_test_root/cron', endpoint='cron_only', view=('kay.tests.views.CronOnly', (), {})), ) ]
# -*- coding: utf-8 -*- """ Kay test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.stacked_decorators.views.index'), Rule('/class', endpoint='MyView', view=('kay.tests.stacked_decorators.views.MyView', (), {})), Rule('/ndb', endpoint='ndb', view='kay.tests.stacked_decorators.views.ndb'), Rule('/class_ndb', endpoint='MyNDBView', view=('kay.tests.stacked_decorators.views.MyNDBView', (), {})), ) ]
# -*- coding: utf-8 -*- # server_error_testapp.urls # # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('server_error_testapp/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'server_error_testapp/index': 'server_error_testapp.views.index', } """ from kay.routing import ( ViewGroup, Rule ) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.regressiontests.server_error_testapp.views.index'), ) ]
# -*- coding: utf-8 -*- # study.urls # from kay.routing import ( ViewGroup, Rule #@UnresolvedImport ) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='study.views.index'), Rule('/gateway', endpoint='gateway', view='study.views.gateway'), Rule('/GFGAEStudy.html', endpoint='redirectIndex', view='study.views.redirectIndex'), Rule('/crossdomain.xml', endpoint='crossdomain', view='study.views.crossdomain'), ) ]
# -*- coding: utf-8 -*- # twitter.urls # # Following few lines is an example urlmapping with an older interface. from kay.routing import ( ViewGroup, Rule #@UnresolvedImport ) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='twitter.views.index'), Rule('/gateway', endpoint='gateway', view='twitter.views.gateway'), Rule('/oauth', endpoint='oauth', view='twitter.twitterutil.oauth'), Rule('/oauth_cb', endpoint='oauth_cb', view='twitter.twitterutil.oauth_cb'), Rule('/redirect', endpoint='redirectParent', view='twitter.views.redirectParent'), Rule('/GFGAETWeet.html', endpoint='redirect', view='twitter.views.redirectIndex')) ]
# -*- coding: utf-8 -*- # %app_name%.urls # # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('%app_name%/', [ Rule('/', endpoint='index'), ]), ] all_views = { '%app_name%/index': '%app_name%.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup(Rule('/', endpoint='index', view='%app_name%.views.index'), ) ]
# -*- coding: utf-8 -*- """ Kay gaema test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.auth_testapp.views.index'), Rule('/secret', endpoint='secret', view='kay.tests.auth_testapp.views.secret'), ) ]
# # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('ereporter/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'ereporter/index': 'ereporter.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='report_generator', view='kay.ext.ereporter.views.report_generator'), Rule('/admin', endpoint='admin', view='kay.ext.ereporter.views.report_admin'), ) ]
# -*- coding: utf-8 -*- # live_settings.urls # # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('live_settings/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'live_settings/index': 'live_settings.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/admin', endpoint='admin', view='kay.ext.live_settings.views.admin'), ) ]
ViewGroup( Rule('/', endpoint='index', view='app.views.index'), Rule('/manage-profile', endpoint='manage-profile', view='app.views.manage_profile'), Rule('/bbs', endpoint='bbs/index', view='app.views.bbs'), Rule('/bbs/<int:id>', endpoint='bbs/thread', view='app.views.bbs_thread'), Rule('/blog/manage', endpoint='blog/manage', view='app.views.blog_manage'), Rule('/blog/create', endpoint='blog/create', view='app.views.blog_create_entry'), Rule('/blog/update/<int:id>', endpoint='blog/update', view='app.views.blog_update_entry'), Rule('/blog/delete/check/<int:id>', endpoint='blog/delete/check', view='app.views.blog_check_delete_entry'), Rule('/blog/delete/<int:id>', endpoint='blog/delete', view='app.views.blog_delete_entry'), Rule('/<user_name>/blog', endpoint='blog/index', view='app.views.blog'), Rule('/<user_name>/blog/<int:id>', endpoint='blog/entry', view='app.views.blog_entry'), Rule('/setting/icon', endpoint='setting/icon', view='app.views.setting_icon'), Rule('/<user_name>/icon_<int:width>x<int:height>.png', endpoint='icon', view='app.views.icon'), Rule('/uploader', endpoint='uploader', view='app.views.uploader'), Rule('/uploader/download/<int:id>/<filename>', endpoint='uploader/download', view='app.views.uploader_download'), Rule('/uploader/delete/check/<int:id>', endpoint='uploader/delete/check', view='app.views.uploader_check_delete'), Rule('/uploader/delete/<int:id>', endpoint='uploader/delete', view='app.views.uploader_delete'), )
from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('admin/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'admin/index': 'admin.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='admin.views.index'), Rule('/settings', endpoint='settings', view='admin.views.settings'), Rule('/site_edit', endpoint='site_edit', view='admin.views.site_edit'), Rule('/thermographies', endpoint='thermographies', view='admin.views.thermographies'), Rule('/thermography', endpoint='thermography', view='admin.views.thermography'), Rule('/site_view', endpoint='site_view', view='admin.views.site_view'), ) ]
# -*- coding: utf-8 -*- """ Kay gaema test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.cache_test.cache_testapp.views.index'), Rule('/decorator', endpoint='decorator', view='kay.tests.cache_test.cache_testapp.views.decorator'), Rule('/decorator_class', endpoint='decorator_class', view=('kay.tests.cache_test.cache_testapp.views.CacheHandler', (), {})), ) ]
def make_rules(): return [ EndpointPrefix('webigo/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'webigo/index': 'webigo.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='webigo.views.index'), Rule('/new/<int:size>', endpoint='new_game', view='webigo.views.new_game'), Rule('/game/<game_id>/touch/', endpoint='touch', view='webigo.views.touch'), Rule('/game/<game_id>/pass/', endpoint='pass', view='webigo.views.pass_touch'), Rule('/game/<game_id>/', endpoint='game', view='webigo.views.game'), ) ]
# -*- coding: utf-8 -*- """ Kay registration urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import ( ViewGroup, Rule ) view_groups = [ ViewGroup( Rule('/activate/<activation_key>', endpoint='activate', view=('kay.registration.views.ActivateHandler', (), {})), Rule('/register', endpoint='register', view=('kay.registration.views.RegisterHandler', (), {})), Rule('/registration_complete', endpoint='registration_complete', view='kay.registration.views.registration_complete'), ) ]
def make_rules(): return [ EndpointPrefix('thermography/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'thermography/index': 'thermography.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='thermography.views.index'), Rule('/track', endpoint='track', view='thermography.views.track'), Rule('/task_calculate_points', endpoint='task_calculate_points', view='thermography.views.task_calculate_points'), Rule('/task_calculate_point_daily', endpoint='task_calculate_point_daily', view='thermography.views.task_calculate_point_daily'), Rule('/task_calculate_point_month', endpoint='task_calculate_point_month', view='thermography.views.task_calculate_point_month'), ) ]
# -*- coding: utf-8 -*- """ kay.ext.gaema.urls :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/login/<service>', endpoint='login', view='kay.ext.gaema.views.login'), Rule('/logout/<service>', endpoint='logout', view='kay.ext.gaema.views.logout'), Rule('/marketplace_login/a/<domain>', endpoint='marketplace_login', view='kay.ext.gaema.views.marketplace_login'), Rule('/marketplace_logout/<domain>', endpoint='marketplace_logout', view='kay.ext.gaema.views.marketplace_logout'), Rule('/select_service/<targets>', endpoint='select_service', view='kay.ext.gaema.views.select_service'), ) ]
# sammy.urls # # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('sammy/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'sammy/index': 'sammy.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='get_content', view='sammy.views.static.get_content'), Rule('/claim', endpoint='ide', view='sammy.views.claim.ide'), Rule('/admin', endpoint='manage', view='sammy.views.admin.manage'), ) ]
# -*- coding: utf-8 -*- from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup(Rule('/', endpoint='index', view='core.views.index'), ) ]
# -*- coding: utf-8 -*- """ Kay i18n urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import ( ViewGroup, Rule ) view_groups = [ ViewGroup( Rule('/set_language', endpoint='set_language', view='kay.i18n.views.set_language'), ) ]
:Copyright: (c) 2009 Accense Technology, Inc. Takashi Matsuo <*****@*****.**>, All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/login', endpoint='login', view='kay.auth.views.login'), Rule('/login_box', endpoint='login_box', view='kay.auth.views.login_box'), Rule('/post_session', endpoint='post_session', view='kay.auth.views.post_session'), Rule('/logout', endpoint='logout', view='kay.auth.views.logout'), Rule('/change_password', endpoint='change_password', view=('kay.auth.views.ChangePasswordHandler', (), {})), Rule('/request_reset_password', endpoint='request_reset_password', view='kay.auth.views.request_reset_password'), Rule('/reset_password/<session_key>', endpoint='reset_password', view='kay.auth.views.reset_password'), ) ]
# -*- coding: utf-8 -*- from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup(Rule('/', endpoint='index', view='scraper.views.index'), ) ]
# -*- coding: utf-8 -*- from kay.generics import crud from kay.routing import (ViewGroup, Rule) from core.models import Article from admin.forms import ArticleForm class ArticleCRUDViewGroup(crud.CRUDViewGroup): model = Article form = ArticleForm view_groups = [ ViewGroup(Rule('/', endpoint='index', view='admin.views.index'), ), ArticleCRUDViewGroup(), ]
# -*- coding: utf-8 -*- # testapp.urls # # Following few lines is an example urlmapping with an older interface. """ from werkzeug.routing import EndpointPrefix, Rule def make_rules(): return [ EndpointPrefix('testapp/', [ Rule('/', endpoint='index'), ]), ] all_views = { 'testapp/index': 'testapp.views.index', } """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup(Rule('/', endpoint='index', view='testapp.views.index'), ) ]
# -*- coding: utf-8 -*- """ Kay test urls. :Copyright: (c) 2009 Takashi Matsuo <*****@*****.**> All rights reserved. :license: BSD, see LICENSE for more details. """ from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/', endpoint='index', view='kay.tests.views.index'), Rule('/countup', endpoint='countup', view='kay.tests.views.countup'), Rule('/index2', endpoint='index2', view='kay.tests.views.index2'), Rule('/no_decorator', endpoint='no_decorator', view='kay.tests.views.no_decorator'), Rule('/oldpage', endpoint='oldpage', redirect_to='newpage', view='kay.tests.views.oldpage'), Rule('/newpage', endpoint='newpage', view='kay.tests.views.newpage'), ) ]
# -*- coding: utf-8 -*- from kay.routing import (ViewGroup, Rule) view_groups = [ ViewGroup( Rule('/get_message', endpoint='get_message', view='ctnotify.views.get_message'), Rule('/', endpoint='index', view='ctnotify.views.index'), ) ]