Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Lambda arguments args defaults NameLoad decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Yield TupleLoad Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Call NameLoad NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Dict Str Str NameLoad Lambda arguments args NameParam NameParam defaults CompareEq Call AttributeLoad Call NameLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str Expr Yield TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Global identifier Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return CompareEq NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Return Call NameLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Global identifier Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Str NameLoad Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Yield TupleLoad Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Yield TupleLoad Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Yield TupleLoad Call NameLoad AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Yield TupleLoad Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr Str
N/A N/A This module contains the extension API for Morepath. It is useful
when you want to define new directives in a Morepath extension.  An
example an extension that does this is `more.static`_.

.. _`more.static`: https://github.com/morepath/more.static

If you just use Morepath you should not have to import from
:mod:`morepath.directive` in your code. Instead you use the directives
defined in here through :class:`morepath.App`.

Morepath uses the Dectate_ library to implement its directives. The
directives are installed on :class:`morepath.App` using the
:meth:`dectate.App.directive` decorator.

We won't repeat the directive documentation here. If you are
interested in creating a custom directive in a Morepath extension it
pays off to look at the source code of this module. If your custom
directive needs to interact with a core directive you can inherit from
them, and/or refer to them with ``group_class``.

When configuration is committed it is written into various
configuration registries which are attached to the
:attr:`dectate.App.config` class attribute. If you implement your own
directive :class:`dectate.Action` that declares one of these
registries in :attr:`dectate.Action.config` you can import their class
from :mod:`morepath.directive`.

.. _Dectate: http://dectate.readthedocs.org

 N/A os N/A dectate app App cachingreg RegRegistry authentication Identity NoIdentity IdentityPolicyRegistry view render_view render_json render_html ViewRegistry traject Path converter ConverterRegistry tween TweenRegistry template TemplateEngineRegistry predicate PredicateRegistry path PathRegistry N/A generic settings SettingRegistry isbaseclass N/A N/A a b N/A N/A N/A N/A issubclass b a N/A SettingAction N/A N/A dectate Action N/A N/A config N/A reg_registry setting_registry RegRegistry SettingRegistry __init__ N/A N/A self section name N/A N/A N/A Register application setting.

        An application setting is registered under the
        ``.config.settings_registry`` class attribute of
        :class:`morepath.App` subclasses. It will be executed early
        in configuration so other configuration directives can depend
        on the settings being there.

        The decorated function returns the setting value when executed.

        :param section: the name of the section the setting should go
          under.
        :param name: the name of the setting in its section.
         N/A N/A self section section N/A N/A self name name N/A identifier N/A N/A self reg_registry setting_registry N/A N/A N/A N/A N/A self section N/A self name N/A perform N/A N/A self obj reg_registry setting_registry N/A N/A N/A N/A N/A setting_registry register_setting N/A self section N/A self name obj N/A after N/A N/A reg_registry setting_registry N/A N/A N/A N/A N/A reg_registry register_function N/A generic settings N/A N/A N/A N/A setting_registry N/A staticmethod N/A N/A N/A App directive setting SettingValue N/A object N/A __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A __call__ N/A N/A self N/A N/A N/A N/A self value N/A N/A SettingSectionAction N/A N/A dectate Composite N/A N/A query_classes N/A SettingAction __init__ N/A N/A self section N/A N/A N/A Register application setting in a section.

        An application settings are registered under the ``settings``
        attribute of :class:`morepath.app.Registry`. It will
        be executed early in configuration so other configuration
        directives can depend on the settings being there.

        The decorated function returns a dictionary with as keys the
        setting names and as values the settings.

        :param section: the name of the section the setting should go
          under.
         N/A N/A self section section N/A actions N/A N/A self obj N/A N/A N/A section N/A obj N/A N/A name value N/A N/A section items N/A N/A N/A N/A N/A SettingAction section N/A self section name name N/A SettingValue value N/A N/A N/A N/A App directive setting_section PredicateFallbackAction N/A N/A dectate Action N/A N/A config N/A predicate_registry PredicateRegistry N/A depends N/A SettingAction N/A filter_convert N/A dispatch func N/A dectate convert_dotted_name N/A dectate convert_dotted_name __init__ N/A N/A self dispatch func N/A N/A N/A For a given dispatch and function dispatched to, register fallback.

        The fallback is called with the same arguments as the dispatch
        function. It should return a response (or raise an exception
        that can be turned into a response).

        :param dispatch: the dispatch function
        :param func: the registered function we are the fallback for
         N/A N/A self dispatch dispatch N/A N/A self func func N/A identifier N/A N/A self predicate_registry N/A N/A N/A N/A N/A N/A self dispatch wrapped_func N/A self func N/A perform N/A N/A self obj predicate_registry N/A N/A N/A N/A N/A predicate_registry register_predicate_fallback N/A self dispatch N/A self func obj N/A N/A N/A N/A App directive predicate_fallback PredicateAction N/A N/A dectate Action N/A N/A config N/A predicate_registry PredicateRegistry N/A depends N/A SettingAction PredicateFallbackAction N/A filter_convert N/A dispatch index before after N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A filter_name N/A before after _before _after __init__ N/A N/A self dispatch name default index before after N/A None None N/A N/A Register custom predicate for a predicate_dispatch function.

        The function registered should have arguments that are the
        same or a subset of the arguments of the predicate_dispatch
        function. From these arguments it should determine a predicate
        value and return it. The predicates for a predicate_dispatch
        function are ordered by their before and after arguments.

        You can then register a function to dispatch to using the
        :meth:`App.function` directive. This takes the
        predicate_dispatch or dispatch function as its first argument
        and the predicate key to match on as its other arguments.

        :param dispatch: the dispatch function this predicate
           is for.
        :param name: the name of the predicate. This is used when
          constructing a predicate key from a predicate dictionary.
        :param default: the default value for a predicate, in case the
          value is missing in the predicate dictionary.
        :param index: the index to use. Typically :class:`reg.KeyIndex` or
          :class:`reg.ClassIndex`.
        :param before: predicate function this function wants to have
           priority over.
        :param after: predicate function we want to have priority over
           this one.
         N/A N/A self dispatch dispatch N/A N/A self name name N/A N/A self default default N/A N/A self index index N/A N/A self _before before N/A N/A self _after after N/A identifier N/A N/A self predicate_registry N/A N/A N/A N/A N/A N/A self dispatch wrapped_func N/A self _before N/A self _after N/A perform N/A N/A self obj predicate_registry N/A N/A N/A N/A N/A N/A self dispatch external_predicates N/A N/A N/A N/A dectate DirectiveError N/A @predicate decorator may only be used with @reg.dispatch_external_predicates: %s N/A self dispatch N/A N/A N/A predicate_registry register_predicate obj N/A self dispatch N/A self name N/A self default N/A self index N/A self _before N/A self _after N/A after N/A N/A predicate_registry N/A N/A N/A N/A N/A predicate_registry install_predicates N/A staticmethod N/A N/A N/A App directive predicate FunctionAction N/A N/A dectate Action N/A N/A config N/A reg_registry predicate_registry RegRegistry PredicateRegistry N/A depends N/A SettingAction PredicateAction PredicateFallbackAction filter_get_value N/A N/A self name N/A N/A N/A N/A N/A N/A self key_dict get name N/A dectate NOT_FOUND N/A N/A filter_convert N/A func N/A dectate convert_dotted_name __init__ N/A N/A self func N/A kw N/A N/A Register function as implementation of generic dispatch function

        The decorated function is an implementation of the generic
        function supplied to the decorator. This way you can override
        parts of the Morepath framework, or create new hookable
        functions of your own.

        The ``func`` argument is a generic dispatch function, so a
        Python function marked with :func:`app.dispatch` or
        :func:`app.predicate_dispatch`.

        :param func: the generic function to register an implementation for.
        :type func: dispatch function object
        :param kw: keyword parameters with the predicate keys to
           register for.  Argument names are predicate names, values
           are the predicate values to match on.
         N/A N/A self func func N/A N/A self key_dict kw N/A predicate_key N/A N/A self reg_registry predicate_registry N/A N/A N/A N/A N/A self func external_predicates N/A N/A N/A N/A N/A predicate_registry get_predicates N/A self func N/A N/A N/A N/A reg_registry register_external_predicates N/A self func N/A N/A N/A N/A reg_registry register_dispatch N/A self func N/A N/A N/A reg_registry key_dict_to_predicate_key N/A N/A self func wrapped_func N/A self key_dict N/A identifier N/A N/A self reg_registry predicate_registry N/A N/A N/A N/A N/A N/A self func wrapped_func N/A N/A self predicate_key reg_registry predicate_registry N/A perform N/A N/A self obj reg_registry predicate_registry N/A N/A N/A N/A N/A reg_registry register_function N/A self func obj N/A self key_dict N/A N/A N/A N/A App directive function ConverterAction N/A N/A dectate Action N/A N/A config N/A converter_registry ConverterRegistry N/A depends N/A SettingAction N/A filter_convert N/A type N/A dectate convert_dotted_name __init__ N/A N/A self type N/A N/A N/A Register custom converter for type.

        :param type: the Python type for which to register the
          converter.  Morepath uses converters when converting path
          variables and URL parameters when decoding or encoding
          URLs. Morepath looks up the converter using the
          type. The type is either given explicitly as the value in
          the ``converters`` dictionary in the
          :meth:`morepath.App.path` directive, or is deduced from
          the value of the default argument of the decorated model
          function or class using ``type()``.
         N/A N/A self type type N/A identifier N/A N/A self converter_registry N/A N/A N/A N/A converter N/A self type N/A perform N/A N/A self obj converter_registry N/A N/A N/A N/A N/A converter_registry register_converter N/A self type N/A obj N/A N/A N/A N/A App directive converter PathAction N/A N/A dectate Action N/A N/A config N/A path_registry PathRegistry N/A depends N/A SettingAction ConverterAction N/A filter_compare N/A model path isbaseclass N/A N/A N/A a b N/A N/A N/A N/A N/A Path a discriminator N/A N/A N/A Path b discriminator __init__ N/A N/A self path model variables converters required get_converters absorb N/A None None None None None False N/A N/A N/A self model model N/A N/A self path path N/A N/A self variables variables N/A N/A self converters converters N/A N/A self required required N/A N/A self get_converters get_converters N/A N/A self absorb absorb N/A identifier N/A N/A self path_registry N/A N/A N/A N/A path N/A N/A N/A Path N/A self path discriminator N/A discriminators N/A N/A self path_registry N/A N/A N/A N/A N/A model N/A self model N/A perform N/A N/A self obj path_registry N/A N/A N/A N/A N/A path_registry register_path N/A self model N/A self path N/A self variables N/A self converters N/A self required N/A self get_converters N/A self absorb obj N/A N/A N/A App private_action_class PathCompositeAction N/A N/A dectate Composite N/A N/A filter_convert N/A model variables get_converters absorb N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_bool N/A query_classes N/A PathAction __init__ N/A N/A self path model variables converters required get_converters absorb N/A None None None None None False N/A N/A Register a model for a path.

        Decorate a function or a class (constructor). The function
        should return an instance of the model class, for instance by
        querying it from the database, or ``None`` if the model does
        not exist.

        The decorated function gets as arguments any variables
        specified in the path as well as URL parameters.

        If you declare a ``request`` parameter the function is
        able to use that information too.

        :param path: the route for which the model is registered.
        :param model: the class of the model that the decorated function
          should return. If the directive is used on a class instead of a
          function, the model should not be provided.
        :param variables: a function that given a model object can construct
          the variables used in the path (including any URL parameters).
          If omitted, variables are retrieved from the model by using
          the arguments of the decorated function.
        :param converters: a dictionary containing converters for variables.
          The key is the variable name, the value is a
          :class:`morepath.Converter` instance.
        :param required: list or set of names of those URL parameters which
          should be required, i.e. if missing a 400 Bad Request response is
          given. Any default value is ignored. Has no effect on path
          variables. Optional.
        :param get_converters: a function that returns a converter dictionary.
          This function is called once during configuration time. It can
          be used to programmatically supply converters. It is merged
          with the ``converters`` dictionary, if supplied. Optional.
        :param absorb: If set to ``True``, matches any subpath that
          matches this path as well. This is passed into the decorated
          function as the ``remaining`` variable.
         N/A N/A self model model N/A N/A self path path N/A N/A self variables variables N/A N/A self converters converters N/A N/A self required required N/A N/A self get_converters get_converters N/A N/A self absorb absorb N/A actions N/A N/A self obj N/A N/A N/A model N/A self model N/A N/A isinstance obj type N/A N/A N/A model None N/A N/A N/A N/A dectate DirectiveError N/A @path decorates class so cannot have explicit model: %s model N/A model obj N/A N/A model None N/A N/A N/A N/A dectate DirectiveError @path does not decorate class and has no explicit model N/A N/A N/A N/A PathAction N/A self path model N/A self variables N/A self converters N/A self required N/A self get_converters N/A self absorb obj N/A N/A N/A N/A App directive path PermissionRuleAction N/A N/A dectate Action N/A N/A config N/A reg_registry RegRegistry N/A filter_convert N/A model permission identity N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A filter_compare N/A model permission identity isbaseclass issubclass issubclass N/A depends N/A SettingAction __init__ N/A N/A self model permission identity N/A Identity N/A N/A Declare whether a model has a permission.

        The decorated function receives ``model``, `permission``
        (instance of any permission object) and ``identity``
        (:class:`morepath.Identity`) parameters. The
        decorated function should return ``True`` only if the given
        identity exists and has that permission on the model.

        :param model: the model class
        :param permission: permission class
        :param identity: identity class to check permission for. If ``None``,
          the identity to check for is the special
          :data:`morepath.NO_IDENTITY`.
         N/A N/A self model model N/A N/A self permission permission N/A N/A identity None N/A N/A identity NoIdentity N/A N/A self identity identity N/A identifier N/A N/A self reg_registry N/A N/A N/A N/A N/A self model N/A self permission N/A self identity N/A perform N/A N/A self obj reg_registry N/A N/A N/A N/A N/A reg_registry register_function N/A generic permits obj identity N/A self identity obj N/A self model permission N/A self permission N/A N/A N/A N/A App directive permission_rule N/A template_directory_id 0 TemplateDirectoryAction N/A N/A dectate Action N/A N/A config N/A template_engine_registry TemplateEngineRegistry N/A depends N/A SettingAction N/A filter_name N/A after before _after _before N/A filter_convert N/A after before N/A dectate convert_dotted_name N/A dectate convert_dotted_name __init__ N/A N/A self after before name N/A None None None N/A N/A Register template directory.

        The decorated function gets no argument and should return a
        relative or absolute path to a directory containing templates
        that can be loaded by this app. If a relative path, it is made
        absolute from the directory this module is in.

        Template directories can be ordered: templates in a directory
        ``before`` another one are found before templates in a
        directory ``after`` it. But you can leave both ``before`` and
        ``after`` out: template directories defined in
        sub-applications automatically have a higher priority than
        those defined in base applications.

        :param after: Template directory function this template directory
          function to be under. The other template directory has a higher
          priority. You usually want to use ``over``. Optional.
        :param before: Template directory function function this function
          should have priority over. Optional.
        :param name: The name under which to register this template
          directory, so that it can be overridden by applications that
          extend this one.  If no name is supplied a default name is
          generated.

         N/A template_directory_id N/A N/A self _after after N/A N/A self _before before N/A N/A name None N/A N/A name N/A template_directory_%s template_directory_id N/A template_directory_id 1 N/A N/A self name name N/A identifier N/A N/A self template_engine_registry N/A N/A N/A N/A self name N/A perform N/A N/A self obj template_engine_registry N/A N/A N/A directory N/A obj N/A N/A N/A N/A N/A os path isabs directory N/A N/A directory N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A self code_info path directory N/A N/A N/A template_engine_registry register_template_directory_info obj directory N/A self _before N/A self _after N/A N/A self directive configurable N/A N/A N/A N/A App directive template_directory TemplateLoaderAction N/A N/A dectate Action N/A N/A config N/A template_engine_registry TemplateEngineRegistry N/A depends N/A TemplateDirectoryAction __init__ N/A N/A self extension N/A N/A N/A Create a template loader.

        The decorated function gets a ``template_directories`` argument,
        which is a list of absolute paths to directories that contain
        templates. It also gets a ``settings`` argument, which is
        application settings that can be used to configure the loader.

        It should return an object that can load the template
        given the list of template directories.
         N/A N/A self extension extension N/A identifier N/A N/A self template_engine_registry N/A N/A N/A N/A self extension N/A perform N/A N/A self obj template_engine_registry N/A N/A N/A N/A N/A template_engine_registry initialize_template_loader N/A self extension obj N/A N/A N/A N/A App directive template_loader TemplateRenderAction N/A N/A dectate Action N/A N/A config N/A template_engine_registry TemplateEngineRegistry N/A depends N/A SettingAction TemplateLoaderAction __init__ N/A N/A self extension N/A N/A N/A Register a template engine.

        :param extension: the template file extension (``.pt``, etc)
          we want this template engine to handle.

        The decorated function gets ``loader``, ``name`` and
        ``original_render`` arguments. It should return a ``callable``
        that is a view ``render`` function: take a ``content`` and
        ``request`` object and return a :class:`morepath.Response`
        instance. This render callable should render the return value
        of the view with the template supplied through its
        ``template`` argument.
         N/A N/A self extension extension N/A identifier N/A N/A self template_engine_registry N/A N/A N/A N/A self extension N/A perform N/A N/A self obj template_engine_registry N/A N/A N/A N/A N/A template_engine_registry register_template_render N/A self extension obj N/A N/A N/A N/A App directive template_render issubclass_or_none N/A N/A a b N/A N/A N/A N/A N/A a None N/A b None N/A N/A N/A a b N/A N/A issubclass a b N/A isbaseclass_notfound N/A N/A a b N/A N/A N/A N/A a N/A dectate NOT_FOUND N/A N/A a object N/A N/A isbaseclass a b N/A ViewAction N/A N/A dectate Action N/A N/A config N/A view_registry ViewRegistry N/A depends N/A SettingAction PredicateAction TemplateRenderAction N/A filter_convert N/A model render permission internal body_model N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_dotted_name N/A dectate convert_bool N/A dectate convert_dotted_name filter_get_value N/A N/A self name N/A N/A N/A N/A N/A N/A self predicates get name N/A dectate NOT_FOUND N/A N/A filter_compare N/A model permission body_model isbaseclass issubclass_or_none isbaseclass_notfound __init__ N/A N/A self model render template permission internal N/A None None None False predicates N/A N/A Register a view for a model.

        The decorated function gets ``self`` (model instance) and
        ``request`` (:class:`morepath.Request`) parameters. The
        function should return either a (unicode) string that is
        the response body, or a :class:`morepath.Response` object.

        If a specific ``render`` function is given the output of the
        function is passed to this first, and the function could
        return whatever the ``render`` parameter expects as input.
        This function should take the object to render and the
        request.  func:`morepath.render_json` for instance expects as
        its first argument a Python object such as a dict that can be
        serialized to JSON.

        See also :meth:`morepath.App.json` and
        :meth:`morepath.App.html`.

        :param model: the class of the model for which this view is registered.
          The ``self`` passed into the view function is an instance
          of the model (or of a subclass).
        :param render: an optional function that can render the output of the
          view function to a response, and possibly set headers such as
          ``Content-Type``, etc. This function takes ``self`` and
          ``request`` parameters as input.
        :param template: a path to a template file. The path is relative
           to the directory this module is in. The template is applied to
           the content returned from the decorated view function.

           Use the :meth:`morepath.App.template_loader` and
           :meth:`morepath.App.template_render` directives to define
           support for new template engines.
        :param permission: a permission class. The model should have this
          permission, otherwise access to this view is forbidden. If omitted,
          the view function is public.
        :param internal: Whether this view is internal only. If
          ``True``, the view is only useful programmatically using
          :meth:`morepath.Request.view`, but will not be published on
          the web. It will be as if the view is not there.
          By default a view is ``False``, so not internal.
        :param name: the name of the view as it appears in the URL. If omitted,
          it is the empty string, meaning the default view for the model.
          This is a predicate.
        :param request_method: the request method to which this view should
          answer, i.e. GET, POST, etc. If omitted, this view responds to
          GET requests only. This is a predicate.
        :param predicates: additional predicates to match this view
          on. You can install your own using the
          :meth:`morepath.App.predicate` directive.
         N/A N/A self model model N/A N/A self render N/A render render_view N/A N/A self template template N/A N/A self permission permission N/A N/A self internal internal N/A N/A self predicates predicates N/A key_dict N/A N/A self N/A N/A N/A result N/A N/A N/A self predicates copy N/A N/A result N/A model N/A self model N/A result N/A identifier N/A N/A self view_registry N/A N/A N/A N/A N/A view_registry predicate_key N/A N/A self key_dict N/A perform N/A N/A self obj view_registry N/A N/A N/A N/A N/A view_registry register_view N/A N/A self key_dict obj N/A self render N/A self template N/A self permission N/A self internal N/A N/A N/A N/A App directive view JsonAction N/A ViewAction N/A N/A group_class ViewAction __init__ N/A N/A self model render template permission internal N/A None None None False predicates N/A N/A Register JSON view.

        This is like :meth:`morepath.App.view`, but with
        :func:`morepath.render_json` as default for the `render`
        function.

        Transforms the view output to JSON and sets the content type to
        ``application/json``.

        :param model: the class of the model for which this view is registered.
        :param name: the name of the view as it appears in the URL. If omitted,
          it is the empty string, meaning the default view for the model.
        :param render: an optional function that can render the output
          of the view function to a response, and possibly set headers
          such as ``Content-Type``, etc. Renders as JSON by
          default. This function takes ``self`` and
          ``request`` parameters as input.
        :param template: a path to a template file. The path is relative
           to the directory this module is in. The template is applied to
           the content returned from the decorated view function.

           Use the :meth:`morepath.App.template_engine` directive to
           define support for new template engines.
        :param permission: a permission class. The model should have this
          permission, otherwise access to this view is forbidden. If omitted,
          the view function is public.
        :param internal: Whether this view is internal only. If
          ``True``, the view is only useful programmatically using
          :meth:`morepath.Request.view`, but will not be published on
          the web. It will be as if the view is not there.
          By default a view is ``False``, so not internal.
        :param name: the name of the view as it appears in the URL. If omitted,
          it is the empty string, meaning the default view for the model.
          This is a predicate.
        :param request_method: the request method to which this view should
          answer, i.e. GET, POST, etc. If omitted, this view will respond to
          GET requests only. This is a predicate.
        :param predicates: predicates to match this view on. See the
          documentation of :meth:`App.view` for more information.
         N/A render N/A render render_json N/A N/A N/A N/A super JsonAction self __init__ model render template permission internal predicates N/A N/A N/A N/A App directive json HtmlAction N/A ViewAction N/A N/A group_class ViewAction __init__ N/A N/A self model render template permission internal N/A None None None False predicates N/A N/A Register HTML view.

        This is like :meth:`morepath.App.view`, but with
        :func:`morepath.render_html` as default for the `render`
        function.

        Sets the content type to ``text/html``.

        :param model: the class of the model for which this view is registered.
        :param name: the name of the view as it appears in the URL. If omitted,
          it is the empty string, meaning the default view for the model.
        :param render: an optional function that can render the output
          of the view function to a response, and possibly set headers
          such as ``Content-Type``, etc. Renders as HTML by
          default. This function takes ``self`` and
          ``request`` parameters as input.
        :param template: a path to a template file. The path is relative
           to the directory this module is in. The template is applied to
           the content returned from the decorated view function.

           Use the :meth:`morepath.App.template_engine` directive to
           define support for new template engines.
        :param permission: a permission class. The model should have this
          permission, otherwise access to this view is forbidden. If omitted,
          the view function is public.
        :param internal: Whether this view is internal only. If
          ``True``, the view is only useful programmatically using
          :meth:`morepath.Request.view`, but will not be published on
          the web. It will be as if the view is not there.
          By default a view is ``False``, so not internal.
        :param name: the name of the view as it appears in the URL. If omitted,
          it is the empty string, meaning the default view for the model.
          This is a predicate.
        :param request_method: the request method to which this view should
          answer, i.e. GET, POST, etc. If omitted, this view will respond to
          GET requests only. This is a predicate.
        :param predicates: predicates to match this view on. See the
          documentation of :meth:`App.view` for more information.
         N/A render N/A render render_html N/A N/A N/A N/A super HtmlAction self __init__ model render template permission internal predicates N/A N/A N/A N/A App directive html DummyModel N/A object N/A N/A N/A MountAction N/A PathAction N/A N/A group_class PathAction N/A depends N/A SettingAction ConverterAction N/A filter_convert N/A app N/A dectate convert_dotted_name N/A N/A N/A filter_convert update N/A PathCompositeAction filter_convert __init__ N/A N/A self path app variables converters required get_converters name N/A None None None None None N/A N/A Mount sub application on path.

        The decorated function gets the variables specified in path as
        parameters. It should return a new instance of an application
        class.

        :param path: the path to mount the application on.
        :param app: the :class:`morepath.App` subclass to mount.
        :param variables: a function that given an app instance can construct
          the variables used in the path (including any URL parameters).
          If omitted, variables are retrieved from the app by using
          the arguments of the decorated function.
        :param converters: converters as for the
          :meth:`morepath.App.path` directive.
        :param required: list or set of names of those URL parameters which
          should be required, i.e. if missing a 400 Bad Request response is
          given. Any default value is ignored. Has no effect on path
          variables. Optional.
        :param get_converters: a function that returns a converter dictionary.
          This function is called once during configuration time. It can
          be used to programmatically supply converters. It is merged
          with the ``converters`` dictionary, if supplied. Optional.
        :param name: name of the mount. This name can be used with
          :meth:`Request.child` to allow loose coupling between mounting
          application and mounted application. Optional, and if not supplied
          the ``path`` argument is taken as the name.

         N/A N/A N/A N/A super MountAction self __init__ path model DummyModel variables variables converters converters required required get_converters get_converters N/A N/A self name N/A name path N/A N/A self app app N/A discriminators N/A N/A self path_registry N/A N/A N/A N/A N/A mount N/A self app N/A perform N/A N/A self obj path_registry N/A N/A N/A N/A N/A path_registry register_mount N/A self app N/A self path N/A self variables N/A self converters N/A self required N/A self get_converters N/A self name obj N/A N/A N/A N/A App directive mount DeferLinksAction N/A N/A dectate Action N/A N/A group_class PathAction N/A depends N/A SettingAction MountAction N/A filter_convert N/A PathCompositeAction filter_convert N/A filter_compare N/A model isbaseclass __init__ N/A N/A self model N/A N/A N/A Defer link generation for model to mounted app.

        With ``defer_links`` you can specify that link generation for
        instances of ``model`` is to be handled by a returned mounted
        app if it cannot be handled by the given app
        itself. :meth:`Request.link` and :meth:`Request.view` are
        affected by this directive. Note that
        :meth:`Request.class_link` is **not** affected by this
        directive, but you can use
        :meth:`morepath.App.defer_class_links` instead.

        The decorated function gets an instance of the application and
        object to link to. It should return another application that
        it knows can create links for this object. The function uses
        navigation methods on :class:`App` to do so like
        :meth:`App.parent` and :meth:`App.child`.

        :param model: the class for which we want to defer linking.

         N/A N/A self model model N/A identifier N/A N/A self path_registry N/A N/A N/A N/A defer_links N/A self model N/A discriminators N/A N/A self path_registry N/A N/A N/A N/A N/A model N/A self model N/A perform N/A N/A self obj path_registry N/A N/A N/A N/A N/A path_registry register_defer_links N/A self model obj N/A N/A N/A N/A App directive defer_links DeferClassLinksAction N/A N/A dectate Action N/A N/A group_class PathAction N/A depends N/A SettingAction MountAction N/A filter_convert N/A PathCompositeAction filter_convert N/A filter_compare N/A model isbaseclass __init__ N/A N/A self model variables N/A N/A N/A Defer class link generation for model class to mounted app.

        With ``defer_class_links`` you can specify that link
        generation for model classes is to be handled by a returned
        mounted app if it cannot be handled by the given app
        itself. :meth:`Request.class_link`, :meth:`Request.link` and
        :meth:`Request.view` are affected by this directive.

        The decorated function gets an instance of the application,
        the model class and a variables dict. It should return another
        application that it knows can create links for this class. The
        function uses navigation methods on :class:`App` to do so like
        :meth:`App.parent` and :meth:`App.child`.

        You also have to supply a ``variables`` argument to describe
        how to get the variables from an instance -- this should be
        return the same variables as needed by the ``path`` directive
        in the app you are deferring to. This allows
        ``defer_class_links`` to function as ``defer_links`` for model
        objects as well.

        :param model: the class for which we want to defer linking.
        :param variables: a function that given a model object can
          construct the variables used in the path (including any URL
          parameters).

         N/A N/A self model model N/A N/A self variables variables N/A identifier N/A N/A self path_registry N/A N/A N/A N/A defer_links N/A self model N/A discriminators N/A N/A self path_registry N/A N/A N/A N/A N/A model N/A self model N/A perform N/A N/A self obj path_registry N/A N/A N/A N/A N/A path_registry register_defer_class_links N/A self model N/A self variables obj N/A N/A N/A N/A App directive defer_class_links N/A tween_factory_id 0 TweenFactoryAction N/A N/A dectate Action N/A N/A config N/A tween_registry TweenRegistry N/A depends N/A SettingAction N/A filter_convert N/A under over N/A dectate convert_dotted_name N/A dectate convert_dotted_name __init__ N/A N/A self under over name N/A None None None N/A N/A Register tween factory.

        The tween system allows the creation of lightweight middleware
        for Morepath that is aware of the request and the application.

        The decorated function is a tween factory. It should return a tween.
        It gets two arguments: the app for which this tween is in use,
        and another tween that this tween can wrap.

        A tween is a function that takes a request and a mounted
        application as arguments.

        Tween factories can be set to be over or under each other to
        control the order in which the produced tweens are wrapped.

        :param under: This tween factory produces a tween that wants to
          be wrapped by the tween produced by the ``under`` tween factory.
          Optional.
        :param over: This tween factory produces a tween that wants to
          wrap the tween produced by the over ``tween`` factory. Optional.
        :param name: The name under which to register this tween factory,
          so that it can be overridden by applications that extend this one.
          If no name is supplied a default name is generated.
         N/A tween_factory_id N/A N/A self under under N/A N/A self over over N/A N/A name None N/A N/A name N/A tween_factory_%s tween_factory_id N/A tween_factory_id 1 N/A N/A self name name N/A identifier N/A N/A self tween_registry N/A N/A N/A N/A self name N/A perform N/A N/A self obj tween_registry N/A N/A N/A N/A N/A tween_registry register_tween_factory obj over N/A self over under N/A self under N/A N/A N/A N/A App directive tween_factory IdentityPolicyFunctionAction N/A N/A dectate Action N/A N/A A special action that helps register the identity policy.

    We need this as it needs to be sorted after SettingAction and
    composite actions can't be sorted nor have access to the registry.
     N/A config N/A identity_policy_registry IdentityPolicyRegistry N/A depends N/A SettingAction __init__ N/A N/A self dispatch name N/A N/A N/A N/A self dispatch dispatch N/A N/A self name name N/A identifier N/A N/A self identity_policy_registry N/A N/A N/A N/A N/A self dispatch N/A self name N/A perform N/A N/A self obj identity_policy_registry N/A N/A N/A N/A N/A identity_policy_registry register_identity_policy_function obj N/A self dispatch N/A self name N/A N/A N/A App private_action_class IdentityPolicyAction N/A N/A dectate Composite N/A N/A query_classes N/A IdentityPolicyFunctionAction __init__ N/A N/A self N/A N/A N/A Register identity policy.

        The decorated function should return an instance of
        :class:`morepath.IdentityPolicy`. Either use an identity
        policy provided by a library or implement your own.

        It gets one optional argument: the settings of the app for which this
        identity policy is in use. So you can pass some settings directly to
        the IdentityPolicy class.
         N/A N/A actions N/A N/A self obj N/A N/A N/A N/A N/A N/A IdentityPolicyFunctionAction N/A generic identify identify obj N/A N/A N/A N/A IdentityPolicyFunctionAction N/A generic remember_identity remember obj N/A N/A N/A N/A IdentityPolicyFunctionAction N/A generic forget_identity forget obj N/A N/A N/A N/A App directive identity_policy VerifyIdentityAction N/A N/A dectate Composite N/A N/A query_classes N/A FunctionAction N/A filter_convert N/A identity N/A dectate convert_dotted_name __init__ N/A N/A self identity N/A object N/A N/A Verify claimed identity.

        The decorated function gives a single ``identity`` argument which
        contains the claimed identity. It should return ``True`` only if the
        identity can be verified with the system.

        This is particularly useful with identity policies such as
        basic authentication and cookie-based authentication where the
        identity information (username/password) is repeatedly sent to
        the the server and needs to be verified.

        For some identity policies (auth tkt, session) this can always
        return ``True`` as the act of establishing the identity means
        the identity is verified.

        The default behavior is to always return ``False``.

        :param identity: identity class to verify. Optional.
         N/A N/A self identity identity N/A actions N/A N/A self obj N/A N/A N/A N/A N/A N/A FunctionAction N/A generic verify_identity identity N/A self identity obj N/A N/A N/A N/A App directive verify_identity DumpJsonAction N/A N/A dectate Action N/A N/A config N/A reg_registry RegRegistry N/A filter_convert N/A model N/A dectate convert_dotted_name N/A filter_compare N/A model isbaseclass __init__ N/A N/A self model N/A object N/A N/A Register a function that converts model to JSON.

        The decorated function gets ``self`` (model instance) and
        ``request`` (:class:`morepath.Request`) parameters. The
        function should return an JSON object. That is, a Python
        object that can be dumped to a JSON string using
        ``json.dump``.

        :param model: the class of the model for which this function is
          registered. The ``self`` passed into the function is an instance
          of the model (or of a subclass). By default the model is ``object``,
          meaning we register a function for all model classes.
         N/A N/A self model model N/A identifier N/A N/A self reg_registry N/A N/A N/A N/A self model N/A perform N/A N/A self obj reg_registry N/A N/A dump N/A N/A request self N/A N/A N/A N/A obj self request N/A N/A N/A N/A reg_registry register_function N/A generic dump_json dump obj N/A self model N/A N/A N/A N/A App directive dump_json LoadJsonAction N/A N/A dectate Action N/A N/A config N/A reg_registry RegRegistry __init__ N/A N/A self N/A N/A N/A Register a function that converts JSON to an object.

        The decorated function gets ``json`` and ``request``
        (:class:`morepath.Request`) parameters. The function should
        return a Python object based on the given JSON.
         N/A N/A identifier N/A N/A self reg_registry N/A N/A N/A N/A N/A perform N/A N/A self obj reg_registry N/A N/A load N/A N/A request json N/A N/A N/A N/A obj json request N/A N/A N/A N/A reg_registry register_function N/A generic load_json load N/A N/A N/A N/A App directive load_json LinkPrefixAction N/A N/A dectate Action N/A N/A config N/A reg_registry RegRegistry __init__ N/A N/A self N/A N/A N/A Register a function that returns the prefix added to every link
        generated by the request.

        By default the link generated is based on
        :meth:`webob.Request.application_url`.

        The decorated function gets the ``request`` (:class:`morepath.Request`)
        as its only parameter. The function should return a string.
         N/A N/A identifier N/A N/A self reg_registry N/A N/A N/A N/A N/A perform N/A N/A self obj reg_registry N/A N/A N/A N/A N/A reg_registry register_function N/A generic link_prefix obj N/A N/A N/A N/A App directive link_prefix