Module ImportFrom alias ImportFrom alias ImportFrom alias Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Import alias ImportFrom alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list Assign NameStore Call NameLoad Call AttributeLoad Str attr Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assert UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Str Str If UnaryOpNot CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore NameStore SubscriptLoad NameLoad Index Num orelse Assign TupleStore NameStore NameStore NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot BoolOpOr AttributeLoad NameLoad attr Call NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad orelse For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Break If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Expr Call NameLoad NameLoad keyword BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Pass orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body ImportFrom alias Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body If AttributeLoad AttributeLoad NameLoad attr attr body Continue For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Expr Str If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr BoolOpOr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list For NameStore NameLoad body For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assert CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr Raise Call NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Raise Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return ImportFrom alias If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Yield TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Dict BinOpAdd AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str orelse If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad BinOpBitOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr Call NameLoad NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad Return Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword Str TryExcept body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list decorator_list
N/A __future__ unicode_literals past.builtins basestring builtins object N/A This defines the :class:`Kernel` class.

The "kernel" of a Lino site is (like `SITE` itself) a "de facto
singleton", available to application code as ``SITE.kernel`` (and its
alias for backwards compatibility: ``SITE.ui``).

The kernel is instantiated at the end of the startup process, when the
:settings`SITE` has been instantiated and models have been loaded.  It
encapsulates a bunch of functionality which becomes available only
then.

TODO: Rename "kernel" to something else.  Because "kernel" suggests
something which is loaded *in first place*. That's not true for Lino's
"kernel".

 N/A logging N/A logger N/A N/A logging getLogger __name__ N/A os os.path join dirname exists N/A sys N/A time N/A codecs N/A atexit django.conf settings django.core exceptions django.utils.encoding force_text django.db models django.utils.translation ugettext_lazy _ lino AFTER17 lino.utils codetime lino.core layouts lino.core actors lino.core actions lino.core fields lino.core dbtables lino.core tables lino.core constants lino.core views lino.utils class_dict_items lino.utils.memo Parser lino.core.requests ActorRequest lino.core.model Model lino.core.store Store lino.core.renderer HtmlRenderer TextRenderer lino.core.signals pre_ui_build post_ui_build pre_analyze post_analyze plugin Plugin ddh DisableDeleteHandler utils resolve_model utils is_devserver utils full_model_name fmn utils obj2str utils get_models exceptions ChangedAPI gfks GenericForeignKey set_default_verbose_name N/A N/A f N/A N/A N/A If the verbose_name of a ForeignKey was not set by user code,
    Django sets it to ``field.name.replace('_', ' ')``.  We replace
    this default value by ``f.rel.model._meta.verbose_name``.  This rule
    holds also for virtual FK fields.

     N/A N/A N/A f verbose_name N/A N/A N/A f name replace _ N/A N/A N/A f verbose_name N/A N/A N/A N/A f rel model _meta verbose_name N/A N/A CLONEABLE_ATTRS N/A frozenset N/A N/A ah request user subst_user
bound_action create_kw known_values param_values
action_param_values split N/A GFK_TARGETS N/A N/A models AutoField N/A models IntegerField CallbackChoice N/A object N/A __init__ N/A N/A self name func label N/A N/A N/A N/A self name name N/A N/A self func func N/A N/A self label label N/A N/A Callback N/A object N/A N/A A callback is a question that rose during an AJAX action.
    The original action is pending until we get a request
    that answers the question.

    TODO: move all callback-related code out of
    :mod:`lino.core.kernel` into to a separate module and install it
    as a "kernel plugin" in a similar way as :mod:`lino.core.web` and
    :mod:`lino.utils.config`.

     N/A title N/A _ Confirmation __init__ N/A N/A self ar message N/A N/A N/A N/A self message message N/A N/A self choices N/A N/A N/A self choices_dict N/A N/A N/A self ar ar N/A __repr__ N/A N/A self N/A N/A N/A N/A Callback(%r) N/A self message N/A set_title N/A N/A self title N/A N/A N/A N/A self title title N/A add_choice N/A N/A self name func label N/A N/A N/A 
        Add a possible answer to this callback.
        - name: "yes", "no", "ok" or "cancel"
        - func: a callable to be executed when user selects this choice
        - the label of the button
         N/A N/A N/A name N/A self choices_dict N/A allowed_names N/A yes no ok cancel N/A N/A N/A name allowed_names N/A N/A N/A Exception N/A Sorry, name must be one of %s allowed_names N/A cbc N/A CallbackChoice name func label N/A N/A N/A N/A self choices append cbc N/A N/A N/A self choices_dict N/A name cbc N/A cbc N/A N/A Kernel N/A object N/A N/A This is the class of the object stored in :attr:`Site.kernel
<lino.core.site.Site.kernel>`.

     N/A default_ui None __init__ N/A N/A self site N/A N/A N/A N/A self pending_threads N/A N/A N/A self site site N/A N/A self GFK_LIST N/A N/A N/A N/A self kernel_startup site N/A N/A self code_mtime N/A codetime N/A N/A self memo_parser N/A Parser url2html N/A N/A parser s N/A N/A N/A url_text N/A N/A s split None 1 N/A N/A N/A len url_text 1 N/A N/A url text N/A url_text N/A 0 N/A N/A N/A url text url_text N/A N/A <a href="%s" target="_blank">%s</a> N/A url text N/A N/A N/A N/A N/A self memo_parser register_command url url2html N/A N/A N/A site build_js_cache_on_startup None N/A N/A N/A site build_js_cache_on_startup N/A N/A N/A settings DEBUG N/A is_devserver N/A a N/A actors actors_list N/A N/A N/A N/A a get_welcome_messages None N/A N/A N/A N/A site add_welcome_handler N/A a get_welcome_messages N/A N/A N/A pre_ui_build send self N/A N/A self html_renderer N/A HtmlRenderer self N/A N/A self text_renderer N/A TextRenderer self N/A N/A self reserved_names N/A N/A getattr constants n N/A n N/A constants URL_PARAMS N/A names N/A set N/A n N/A self reserved_names N/A N/A N/A n names N/A N/A N/A Exception N/A Duplicate reserved name %r n N/A N/A N/A names add n N/A p N/A site installed_plugins N/A N/A N/A N/A p on_ui_init self N/A ui None N/A N/A N/A N/A self site default_ui None N/A N/A ui N/A N/A N/A N/A self site plugins resolve N/A N/A self site default_ui N/A N/A ui None N/A N/A N/A Exception N/A Invalid value %r for `default_ui` (must be one of %s) N/A N/A N/A self site default_ui N/A list N/A N/A N/A N/A self site plugins keys N/A N/A ui url_prefix None N/A N/A p N/A N/A self site installed_plugins N/A N/A N/A N/A p ui_handle_attr_name None N/A N/A ui p N/A N/A N/A ui None N/A N/A N/A self default_renderer N/A ui renderer N/A N/A self default_ui ui N/A N/A N/A post_ui_build send self N/A N/A N/A self default_ui None N/A N/A res N/A actors actors_list N/A N/A ba N/A N/A res get_actions N/A N/A N/A N/A N/A ba action params_layout None N/A N/A N/A N/A N/A N/A ba action params_layout get_layout_handle N/A self default_ui N/A kernel_startup N/A N/A kernel self N/A N/A N/A This is a part of a Lino site startup.  The Django Model
        definitions are done, now Lino analyzes them and does certain
        actions:

        - Verify that there are no more pending injects Install a
          :class:`DisableDeleteHandler
          <lino.core.ddh.DisableDeleteHandler>` for each Model into
          `_lino_ddh`.

        - Install :class:`lino.core.model.Model` attributes and
          methods into Models that don't inherit from it.

         N/A N/A N/A len N/A sys argv 0 N/A N/A process_name WSGI N/A N/A process_name N/A N/A join N/A sys argv N/A N/A N/A logger info Started %s (using %s) --> PID %s process_name N/A settings SETTINGS_MODULE N/A N/A os getpid goodbye N/A N/A N/A N/A N/A N/A N/A logger info Done %s (PID %s) process_name N/A N/A os getpid N/A N/A N/A N/A atexit register goodbye N/A models_list N/A get_models include_auto_created True N/A N/A N/A self setup_model_spec self user_model N/A N/A N/A self setup_model_spec self project_model N/A N/A app_name_model p N/A list N/A N/A N/A self override_modlib_models items N/A N/A m N/A N/A . join N/A N/A N/A app_name_model split . N/A -2 N/A N/A resolve_model m strict N/A %s plugin tries to extend unresolved model '%%s' N/A N/A p __class__ __module__ N/A model models_list N/A N/A N/A _lino_ddh N/A model __dict__ N/A N/A N/A Exception 20150831 %s model N/A N/A model _lino_ddh N/A DisableDeleteHandler model N/A N/A N/A Model django2lino model N/A N/A isinstance N/A model hidden_columns basestring N/A N/A N/A model hidden_columns N/A frozenset N/A N/A fields fields_list model N/A model hidden_columns N/A N/A isinstance N/A model active_fields basestring N/A N/A N/A model active_fields N/A frozenset N/A N/A fields fields_list model N/A model active_fields N/A N/A isinstance N/A model allow_cascaded_delete basestring N/A N/A N/A model allow_cascaded_delete N/A frozenset N/A N/A fields fields_list model N/A model allow_cascaded_delete N/A qsf N/A model quick_search_fields N/A N/A qsf None N/A N/A fields_list N/A N/A field N/A N/A model _meta fields N/A N/A N/A isinstance field N/A models CharField N/A N/A N/A N/A fields_list append N/A field name N/A N/A model quick_search_fields N/A frozenset fields_list N/A N/A N/A isinstance qsf frozenset N/A N/A N/A N/A N/A isinstance qsf basestring N/A N/A N/A model quick_search_fields N/A frozenset N/A N/A fields fields_list model N/A model quick_search_fields N/A N/A N/A ChangedAPI N/A N/A {0}.quick_search_fields must be None or a string of space-separated field names (not {1}) format model qsf N/A N/A N/A model _meta abstract N/A N/A N/A Exception Tiens? N/A f N/A N/A model _meta virtual_fields N/A N/A N/A isinstance f GenericForeignKey N/A N/A N/A N/A N/A kernel GFK_LIST append f N/A N/A self user_profiles_module N/A importlib import_module N/A N/A import_module N/A self user_profiles_module N/A N/A N/A self setup_choicelists N/A N/A N/A self setup_workflows N/A model models_list N/A N/A N/A N/A model _meta auto_created N/A N/A N/A f N/A N/A N/A model _meta get_fields N/A N/A m N/A f model N/A N/A N/A N/A f __class__ N/A models CharField N/A f null N/A N/A msg N/A Nullable CharField %s in %s N/A N/A f name model N/A N/A Exception msg N/A N/A N/A isinstance f N/A models ForeignKey N/A N/A N/A isinstance N/A N/A f rel model basestring N/A N/A N/A Exception N/A Could not resolve target %r of ForeignKey '%s' in %s (models are %s) N/A N/A N/A f rel model N/A f name model models_list N/A N/A set_default_verbose_name f N/A 
                    If JobProvider is an MTI child of Company,
                    then mti.delete_child(JobProvider) must not fail on a
                    JobProvider being referred only by objects that can refer
                    to a Company as well.
                     N/A N/A N/A hasattr N/A N/A f rel model _lino_ddh N/A N/A N/A Exception 20150824 N/A N/A N/A N/A N/A N/A f rel model _lino_ddh add_fk N/A m model f N/A N/A N/A kernel protect_foreignkeys models_list N/A p N/A self installed_plugins N/A N/A N/A isinstance p Plugin N/A N/A N/A N/A p before_analyze N/A N/A N/A pre_analyze send self models_list models_list N/A N/A N/A self setup_actions N/A model models_list N/A N/A Virtual fields declared on the model must have been attached
            before calling Model.site_setup(), e.g. because
            pcsw.Person.site_setup() declares `is_client` as imported
            field.

             N/A N/A N/A model on_analyze self N/A N/A k v N/A class_dict_items model N/A N/A N/A isinstance v N/A fields VirtualField N/A N/A N/A N/A v attach_to_model model k N/A N/A N/A actors discover N/A N/A N/A logger debug actors.initialize() N/A a N/A actors actors_list N/A N/A N/A N/A a class_init N/A N/A N/A dbtables discover N/A N/A N/A actions discover_choosers N/A a N/A actors actors_list N/A N/A N/A N/A a on_analyze self N/A N/A N/A post_analyze send self models_list models_list N/A False N/A N/A N/A N/A logger info Languages: %s. %d apps, %d models, %s actors. N/A N/A ,  join N/A N/A li django_code N/A li N/A self languages N/A len N/A self modules N/A len models_list N/A len N/A actors actors_list N/A N/A N/A self setup_layouts N/A N/A N/A self on_each_app site_setup N/A a N/A actors actors_list N/A N/A N/A N/A a after_site_setup self N/A N/A N/A self resolve_virtual_fields N/A protect_foreignkeys N/A N/A self models_list N/A N/A N/A Change `on_delete` from CASCADE (Django's default value) to PROTECT
        for foreignkeys that need to be protected.

        Basically we protect all FK fields that are not listed in
        their model's :attr:`allow_cascaded_delete
        <lino.core.model.Model.allow_cascaded_delete>`. With one
        exception: pointers to the MTI parent of a :class:`Polymorphic
        <lino.mixins.polymorphic.Polymorphic>` must not
        become protected (because Lino handles it automatically, see
        :meth:`lino.mixins.polymorphic.Polymorphic.disable_delete`).

         lino.mixins.polymorphic Polymorphic must_protect N/A N/A m fk model N/A N/A N/A N/A N/A fk name N/A m allow_cascaded_delete N/A N/A False N/A N/A m model N/A N/A True N/A N/A issubclass m model N/A N/A N/A issubclass m Polymorphic N/A N/A False N/A True N/A N/A model models_list N/A N/A N/A m fk N/A N/A model _lino_ddh fklist N/A N/A N/A N/A N/A fk rel model model N/A N/A N/A N/A fk rel on_delete N/A models CASCADE N/A N/A N/A must_protect m fk model N/A N/A msg N/A N/A Setting {0}.{1}.on_delete to PROTECT because field is not specified in allow_cascaded_delete. format N/A fmn m N/A fk name N/A N/A N/A logger debug msg N/A N/A N/A fk rel on_delete N/A models PROTECT N/A N/A N/A N/A fk name N/A m allow_cascaded_delete N/A N/A msg N/A N/A {0}.{1} specified in allow_cascaded_delete but on_delete is not CASCADE format N/A fmn m N/A fk name N/A N/A Exception msg N/A N/A N/A N/A fk rel on_delete N/A models SET_NULL N/A N/A N/A N/A fk null N/A N/A msg {0}.{1} has on_delete SET_NULL but is not nullable  N/A msg N/A N/A msg format N/A fmn m N/A fk name N/A N/A fk rel model N/A N/A Exception msg N/A N/A msg N/A N/A {0}.{1} has custom on_delete format N/A fmn m N/A fk name N/A N/A fk rel on_delete N/A N/A N/A logger debug msg N/A get_generic_related N/A N/A self obj N/A N/A N/A Yield a series of `(gfk, fk_field, queryset)` tuples which together
         will return all database objects for which the given
         GenericForeignKey gfk points to the object `obj`. See also
         :doc:`/dev/gfks`.

         N/A N/A N/A len N/A self GFK_LIST 0 N/A N/A django.contrib.contenttypes.models ContentType N/A N/A N/A isinstance N/A N/A obj _meta pk GFK_TARGETS N/A N/A N/A obj_ct N/A N/A N/A ContentType objects get_for_model N/A obj __class__ N/A gfk N/A self GFK_LIST N/A N/A fk_field N/A N/A N/A N/A gfk model _meta get_field N/A gfk fk_field N/A kw N/A dict N/A N/A kw N/A N/A gfk fk_field N/A obj pk N/A N/A kw N/A N/A gfk ct_field obj_ct N/A ct N/A N/A N/A ContentType objects get_for_model N/A gfk model N/A N/A N/A gfk fk_field N/A N/A ct get_all_objects_for_this_type kw N/A get_broken_generic_related N/A N/A self model N/A N/A N/A Yield all database objects of this model which have some broken
        GFK field.
    
        This is a slow query which does an additional database request
        for each row. (Is there a possibility to do this in a single
        SQL query?)
    
        Each yeld object has two special attributes:
    
        - `_message` : a textual description of the problem
        - `_todo` : 'delete', 'clear' or 'manual'

        Note: the "clear" action should not run automatically, at
        least not for :mod:`lino.modlib.changes`.

        See also :ref:`lino.tutorial.watch`.

         N/A gfks N/A f N/A f N/A self GFK_LIST N/A N/A f model model N/A N/A len gfks N/A N/A gfk gfks N/A N/A fk_field N/A N/A N/A N/A gfk model _meta get_field N/A gfk fk_field N/A kw N/A N/A N/A gfk ct_field __isnull False N/A qs N/A N/A N/A model objects filter kw N/A obj qs N/A N/A fk N/A getattr obj N/A gfk fk_field N/A ct N/A getattr obj N/A gfk ct_field N/A pointed_model N/A N/A ct model_class N/A N/A N/A N/A N/A N/A pointed_model objects get pk fk N/A N/A N/A N/A pointed_model DoesNotExist N/A N/A msg Invalid primary key {1} for {2} in `{0}` N/A N/A obj _message N/A N/A msg format N/A gfk fk_field fk N/A fmn pointed_model N/A N/A N/A gfk name N/A model allow_cascaded_delete N/A N/A N/A obj _todo delete N/A N/A N/A fk_field null N/A N/A N/A obj _todo clear N/A N/A N/A obj _todo manual N/A N/A obj N/A abandon_response N/A N/A self N/A N/A N/A N/A N/A self success N/A _ User abandoned N/A field2elem N/A N/A self lui field N/A kw N/A N/A N/A run_callback N/A N/A self request thread_id button_id N/A N/A N/A Continue the action which was started in a previous request and
        which asked for user interaction via a :class:`Callback`.

        This is called from `lino.core.views.Callbacks`.

         N/A thread_id N/A int thread_id N/A cb N/A N/A N/A self pending_threads pop thread_id None N/A N/A cb None N/A N/A ar N/A ActorRequest request renderer N/A self default_renderer N/A N/A N/A logger debug N/A No callback %r in %r N/A thread_id N/A list N/A N/A N/A self pending_threads keys N/A N/A N/A ar error N/A Unknown callback %r thread_id N/A N/A N/A self render_action_response ar N/A ar N/A N/A N/A N/A cb ar actor request_from N/A cb ar N/A k CLONEABLE_ATTRS N/A N/A N/A setattr ar k N/A getattr N/A cb ar k N/A c N/A cb choices N/A N/A N/A N/A c name button_id N/A N/A a N/A N/A ar bound_action action N/A N/A N/A N/A self site log_each_action_request N/A N/A a readonly N/A N/A N/A N/A logger info N/A N/A run_callback {0} {1} {2} format thread_id N/A cb message N/A c name N/A N/A N/A N/A N/A c func ar N/A N/A N/A Warning N/A e N/A N/A N/A N/A ar error e alert True N/A N/A N/A self render_action_response ar N/A N/A N/A ar error N/A Invalid button %r for callback N/A button_id thread_id N/A N/A N/A self render_action_response ar N/A add_callback N/A N/A self ar N/A msgs N/A N/A Returns an "action callback" which will initiate a dialog thread
        by asking a question to the user and suspending execution until
        the user's answer arrives in a next HTTP request.

        Calling this from an Action's :meth:`run_from_ui
        <lino.core.actions.Action.run_from_ui>` method will interrupt
        the execution, send the specified message back to the user,
        adding the executables `yes` and optionally `no` to a queue of
        pending "dialog threads".

        The client will display the prompt and will continue this
        thread by requesting
        :class:`lino.modlib.extjs3.views.Callbacks`.

         N/A N/A N/A len msgs 1 N/A N/A msg N/A N/A join N/A N/A force_text s N/A s msgs N/A N/A msg N/A msgs N/A 0 N/A N/A Callback ar msg N/A set_callback N/A N/A self ar cb N/A N/A N/A N/A h N/A hash cb N/A N/A N/A self pending_threads N/A h cb N/A buttons N/A dict N/A c N/A cb choices N/A N/A N/A buttons N/A N/A c name N/A c label N/A N/A N/A ar success N/A cb message xcallback N/A dict id h title N/A cb title buttons buttons N/A run_action N/A N/A self ar N/A N/A N/A Run the action, catching some exceptions in order to report them
        in a user-friendly way.

         N/A a N/A N/A ar bound_action action N/A N/A N/A N/A self site log_each_action_request N/A N/A a readonly N/A N/A flds N/A N/A A N/A flds append N/A a N/A N/A ar bound_action action N/A N/A A N/A N/A N/A ar get_user username N/A N/A A N/A N/A N/A ar bound_action full_name N/A N/A A N/A obj2str N/A ar master_instance N/A N/A A N/A obj2str N/A ar selected_rows N/A N/A N/A logger info N/A N/A run_action {0} format N/A N/A join flds N/A N/A N/A N/A N/A a run_from_ui ar N/A N/A N/A a parameters N/A N/A a no_params_window N/A N/A N/A N/A ar set_response close_window True N/A N/A N/A N/A exceptions ValidationError N/A e N/A N/A N/A N/A ar error N/A N/A N/A N/A ar ah actor error2str e alert True N/A N/A Warning N/A e N/A N/A N/A N/A ar error e alert True N/A N/A N/A self render_action_response ar N/A setup_handle N/A N/A self h ar N/A N/A N/A 
        ar is usually None, except for actors with dynamic handle
         N/A N/A N/A N/A h actor is_abstract N/A N/A N/A N/A isinstance h N/A tables TableHandle N/A N/A he N/A set N/A N/A N/A h actor hidden_columns N/A N/A h actor hidden_elements N/A ll N/A N/A layouts ColumnsLayout N/A N/A N/A h actor get_column_names ar N/A h actor hidden_elements he N/A N/A h list_layout N/A N/A ll get_layout_handle N/A self default_ui N/A N/A N/A h list_layout None N/A N/A N/A h actor params_layout N/A N/A N/A h params_layout_handle N/A N/A N/A h actor make_params_layout_handle self N/A N/A h store N/A Store h N/A render_action_response N/A N/A self ar N/A N/A N/A Builds a JSON response from response information stored in given
        ActionRequest.

         N/A N/A N/A views json_response N/A ar response N/A ar content_type N/A row_action_button N/A N/A self N/A args kw N/A N/A 
        See :meth:`ExtRenderer.row_action_button`
         N/A N/A N/A N/A self default_renderer row_action_button args kw N/A N/A _must_build False must_build_site_cache N/A N/A self N/A N/A N/A N/A self _must_build True N/A make_cache_file N/A N/A self fn write force N/A False N/A N/A Make the specified cache file.  This is used internally at server
        startup.

         N/A fn N/A join N/A settings MEDIA_ROOT fn N/A N/A N/A force N/A N/A self _must_build N/A exists fn N/A N/A mtime N/A N/A N/A os stat fn st_mtime N/A N/A mtime N/A self code_mtime N/A N/A N/A N/A logger debug %s (%s) is up to date. fn N/A N/A time ctime mtime N/A 0 N/A N/A N/A logger info Building %s ... fn N/A N/A N/A N/A self site makedirs_if_missing N/A dirname fn N/A f N/A N/A codecs open fn w encoding utf-8 N/A N/A N/A N/A write f N/A N/A N/A f close N/A 1 N/A N/A N/A Exception N/A N/A N/A N/A f close N/A N/A N/A N/A self site keep_erroneous_cache_files N/A N/A N/A N/A os remove fn N/A N/A N/A