Dispatcher across multiple URLMatcher instances.
def google.appengine.tools.old_dev_appserver.MatcherDispatcher.__init__ |
( |
|
self, |
|
|
|
config, |
|
|
|
login_url, |
|
|
|
module_manager, |
|
|
|
url_matchers, |
|
|
|
get_user_info = dev_appserver_login.GetUserInfo , |
|
|
|
login_redirect = dev_appserver_login.LoginRedirect |
|
) |
| |
Initializer.
Args:
config: AppInfoExternal instance representing the parsed app.yaml file.
login_url: Relative URL which should be used for handling user logins.
module_manager: ModuleManager instance that is used to detect and reload
modules if the matched Dispatcher is dynamic.
url_matchers: Sequence of URLMatcher objects.
get_user_info: Used for dependency injection.
login_redirect: Used for dependency injection.
def google.appengine.tools.old_dev_appserver.MatcherDispatcher.Dispatch |
( |
|
self, |
|
|
|
request, |
|
|
|
outfile, |
|
|
|
base_env_dict = None |
|
) |
| |
Dispatches a request to the first matching dispatcher.
Matchers are checked in the order they were supplied to the constructor.
If no matcher matches, a 404 error will be written to the outfile. The
path variable supplied to this method is ignored.
The value of request.path is ignored.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/old_dev_appserver.py