Exemplo n.º 1
0
#

# 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'))
]
Exemplo n.º 2
0
# -*- 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', (), {})),
    )
]
Exemplo n.º 3
0
# -*- 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'),
    )
]
Exemplo n.º 4
0
# -*- 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'),
    )
]
Exemplo n.º 5
0
# -*- 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'),
    )
]
Exemplo n.º 6
0
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', (), {})),
  )
]
Exemplo n.º 7
0
# -*- 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', (), {})),
    )
]
Exemplo n.º 8
0
# -*- 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'),
  )
]

Exemplo n.º 9
0
# -*- 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'),
    )
]
Exemplo n.º 10
0
# -*- 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'))
]
Exemplo n.º 11
0
# -*- 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'), )
]
Exemplo n.º 12
0
# -*- 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'),
    )
]
Exemplo n.º 13
0
#

# 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'),
    )
]
Exemplo n.º 14
0
# -*- 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'), )
]
Exemplo n.º 15
0
 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'),
 )
Exemplo n.º 16
0
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'),
    )
]
Exemplo n.º 17
0
# -*- 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', (),
                   {})),
    )
]
Exemplo n.º 18
0
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'),
    )
]
Exemplo n.º 19
0
# -*- 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'),
  )
]

Exemplo n.º 20
0
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'),
    )
]
Exemplo n.º 21
0
# -*- 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'),
    )
]
Exemplo n.º 22
0
# 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'),
    )
]
Exemplo n.º 23
0
# -*- coding: utf-8 -*-

from kay.routing import (ViewGroup, Rule)

view_groups = [
    ViewGroup(Rule('/', endpoint='index', view='core.views.index'), )
]
Exemplo n.º 24
0
# -*- 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'),
  )
]

Exemplo n.º 25
0
: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'),
    )
]
Exemplo n.º 26
0
# -*- coding: utf-8 -*-
from kay.routing import (ViewGroup, Rule)

view_groups = [
    ViewGroup(Rule('/', endpoint='index', view='scraper.views.index'), )
]
Exemplo n.º 27
0
# -*- 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(),
]
Exemplo n.º 28
0
# -*- 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'), )
]
Exemplo n.º 29
0
# -*- 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'),
    )
]
Exemplo n.º 30
0
# -*- 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'),
    )
]