Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (31 sloc) 0.826 kb
# -*- coding: utf-8 -*-
"""
Kay URL dispatch setting.
"""
# following few lines is a urlmapping with an older interface.
"""
from werkzeug.routing import (
Map, Rule, Submount,
EndpointPrefix, RuleTemplate,
)
def make_url():
return Map([
Rule('/_ah/queue/deferred', endpoint='deferred'),
Rule('/maintenance_page', endpoint='_internal/maintenance_page'),
])
all_views = {
'deferred': 'kay.handlers.task.task_handler',
'_internal/maintenance_page': 'kay._internal.views.maintenance_page',
}
"""
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'),
)
]
Jump to Line
Something went wrong with that request. Please try again.