Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body ImportFrom alias orelse Assign NameStore NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias Assign NameStore Str FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body Expr Yield NameLoad For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Dict BinOpAdd BinOpAdd NameLoad NameLoad Str NameLoad Assign NameStore BinOpBitOr NameLoad Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Dict BinOpAdd NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpBitOr NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Num NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict If CompareEq NameLoad Str body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpAdd AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpBitAnd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpBitAnd NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str BinOpAdd AttributeLoad NameLoad attr Str orelse Raise Call NameLoad Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore Str Assign SubscriptStore NameLoad Index BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str Assign NameStore BinOpBitAnd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore BinOpBitAnd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore Str Assign SubscriptStore NameLoad Index BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore BinOpBitAnd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Return If Call NameLoad NameLoad NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body If UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse If CompareIs AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIsNot NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad For NameStore NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad NameLoad decorator_list Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Str Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Call AttributeLoad NameLoad attr keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return If CompareIsNot NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad body If BoolOpAnd AttributeLoad NameLoad attr CompareIn AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIsNot NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body Expr Yield NameLoad Expr Yield BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Yield NameLoad For NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Return NameLoad ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr Return BoolOpOr AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignBitOr AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignBitOr AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AugAssignBitOr AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Pass orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad NameLoad NameLoad For NameStore TupleLoad Str Str body If CompareIs Call NameLoad NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad Str body If CompareIs Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body For NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad Break If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Raise Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If NameLoad body For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num TryExcept body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assert NameLoad Assert UnaryOpNot NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return If Call NameLoad AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body If BoolOpOr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpAdd NameLoad Str NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad body Expr Yield NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list
N/A N/A 
This defines the :class:`Table` class.
 __future__ print_function builtins str past.builtins basestring N/A logging N/A logger N/A N/A logging getLogger __name__ N/A datetime django.conf settings django.db.models.fields NOT_PROVIDED django.utils.translation ugettext_lazy _ django.db models django.db.models.query QuerySet django.apps apps N/A get_models N/A apps get_models N/A N/A N/A N/A settings SITE is_installed contenttypes N/A django.contrib.contenttypes.models ContentType N/A N/A ContentType None lino.core fields lino.core actions lino.core.model Model lino.core actors lino.core frames lino.core.choicelists ChoiceListField lino.core.utils resolve_model get_field UnresolvedModel lino.core.tables AbstractTable TableRequest VirtualTable lino.core.gfks ContentType GenericForeignKey N/A INVALID_MK Invalid master_key '{0}' in {1} : {2} base_attrs N/A N/A cl N/A N/A N/A b N/A cl __bases__ N/A N/A k N/A base_attrs b N/A N/A N/A k N/A k N/A list N/A N/A N/A b __dict__ keys N/A N/A N/A k N/A add_quick_search_filter N/A N/A qs search_text N/A N/A N/A N/A N/A isinstance qs QuerySet N/A N/A qs N/A N/A N/A qs filter N/A quick_search_filter N/A qs model search_text N/A quick_search_filter N/A N/A model search_text prefix N/A N/A N/A q N/A N/A models Q N/A fn N/A model quick_search_fields N/A N/A kw N/A N/A N/A prefix fn __icontains search_text N/A q N/A q N/A N/A models Q kw N/A N/A N/A search_text isdigit N/A N/A field N/A N/A model _meta fields N/A N/A N/A isinstance field N/A N/A models IntegerField N/A models AutoField N/A N/A kw N/A N/A prefix N/A field name N/A int search_text N/A q N/A q N/A N/A models Q kw N/A q N/A add_gridfilters N/A N/A qs gridfilters N/A N/A N/A 
    Converts a `filter` request in the format used by :extux:`Ext.ux.grid.GridFilters` into a
    `Django field lookup <http://docs.djangoproject.com/en/1.2/ref/models/querysets/#field-lookups>`_
    on a :class:`django.db.models.query.QuerySet`.

    :param qs: the queryset to be modified.
    :param gridfilters: a list of dictionaries, each having 3 keys `field`, `type` and `value`.

     N/A N/A N/A isinstance qs QuerySet N/A N/A N/A NotImplementedError TODO: filter also simple lists N/A q N/A N/A models Q N/A N/A print 20150506 gridfilters N/A flt gridfilters N/A N/A field N/A get_field N/A qs model N/A flt N/A field N/A flttype N/A flt N/A type N/A kw N/A N/A N/A flttype string N/A N/A N/A isinstance field N/A models CharField N/A N/A N/A kw N/A N/A N/A field name __icontains N/A flt N/A value N/A q N/A q N/A N/A models Q kw N/A N/A N/A isinstance field N/A models ForeignKey N/A N/A q N/A q N/A quick_search_filter N/A N/A field rel model N/A flt N/A value N/A N/A field name __ N/A N/A N/A NotImplementedError N/A repr flt N/A N/A N/A flttype numeric N/A N/A cmp N/A str N/A flt N/A comparison N/A N/A cmp eq N/A N/A cmp exact N/A N/A kw N/A N/A N/A N/A field name __ cmp N/A flt N/A value N/A q N/A q N/A N/A models Q kw N/A N/A N/A flttype boolean N/A N/A N/A kw N/A N/A field name N/A flt N/A value N/A q N/A q N/A N/A models Q kw N/A N/A N/A flttype date N/A N/A v N/A N/A datetime date N/A N/A N/A settings SITE parse_date N/A flt N/A value N/A cmp N/A str N/A flt N/A comparison N/A N/A cmp eq N/A N/A cmp exact N/A N/A kw N/A N/A N/A N/A field name __ cmp v N/A q N/A q N/A N/A models Q kw N/A N/A N/A NotImplementedError N/A repr flt N/A N/A N/A qs filter q N/A rc_name N/A N/A rptclass N/A N/A N/A N/A N/A N/A rptclass app_label . N/A rptclass __name__ N/A N/A master_reports N/A N/A slave_reports N/A N/A generic_slaves N/A N/A frames_list N/A N/A custom_tables N/A register_frame N/A N/A frm N/A N/A N/A N/A N/A frames_list append frm N/A is_candidate N/A N/A T N/A N/A N/A N/A N/A T filter N/A T exclude N/A T known_values N/A N/A False N/A N/A N/A T use_as_default_table N/A N/A False N/A True N/A register_report N/A N/A rpt N/A N/A N/A N/A N/A issubclass rpt Table N/A N/A rpt model None N/A N/A N/A N/A issubclass rpt Table N/A N/A N/A N/A rpt master None N/A N/A N/A N/A N/A N/A rpt model _meta abstract N/A N/A N/A N/A master_reports append rpt N/A N/A N/A _lino_default_table N/A N/A rpt model __dict__ N/A N/A N/A is_candidate rpt N/A N/A N/A N/A rpt model _lino_default_table rpt N/A N/A N/A N/A rpt master ContentType N/A N/A N/A generic_slaves N/A N/A rpt actor_id rpt N/A N/A N/A N/A slave_reports append rpt N/A N/A N/A issubclass rpt VirtualTable N/A N/A N/A N/A custom_tables append rpt N/A discover N/A N/A N/A N/A N/A This is being called at startup.
    
    - Each model can receive a number of "slaves".
      Slaves are tables whose data depends on an instance
      of another model (their master).

    - For each model we want to find out the "default table".
      The "choices table" for a foreignkey field is also currently
      simply the pointed model's default table.
      :modattr:`_lino_default_table`

     N/A N/A N/A logger debug Analyzing Tables... N/A rpt N/A actors actors_list N/A N/A N/A N/A issubclass rpt Table N/A rpt Table N/A N/A N/A register_report rpt N/A N/A N/A N/A issubclass rpt VirtualTable N/A rpt VirtualTable N/A N/A N/A register_report rpt N/A N/A N/A issubclass rpt N/A frames Frame N/A rpt N/A frames Frame N/A N/A N/A register_frame rpt N/A N/A N/A logger debug Instantiate model tables... N/A model N/A get_models N/A N/A rpt N/A N/A N/A model __dict__ get _lino_default_table None N/A N/A rpt None N/A N/A rpt N/A table_factory model N/A N/A rpt None N/A N/A N/A Exception N/A table_factory() failed for %r. model N/A N/A register_report rpt N/A N/A N/A rpt class_init N/A N/A model _lino_default_table rpt N/A N/A N/A logger debug Analyze %d slave tables... N/A len slave_reports N/A rpt slave_reports N/A N/A N/A isinstance N/A rpt master basestring N/A N/A N/A Exception 20150216 unresolved master N/A N/A issubclass N/A rpt master N/A models Model N/A N/A slaves N/A getattr N/A rpt master _lino_slaves None N/A N/A slaves None N/A N/A slaves N/A N/A N/A N/A rpt master _lino_slaves slaves N/A N/A slaves N/A N/A rpt actor_id rpt N/A has_fk N/A N/A rr name N/A N/A N/A N/A isinstance rr TableRequest N/A N/A N/A N/A N/A rr actor master_key name N/A False N/A model2actor N/A N/A m N/A N/A f N/A N/A table N/A args N/A N/A N/A m args N/A N/A N/A classmethod f N/A Table N/A AbstractTable N/A N/A An :class:`AbstractTable <lino.core.tables.AbstractTable>` that works
    on a Django Model using a QuerySet.

    A Table inherits from :class:`AbstractTable
    <lino.core.tables.AbstractTable>` and adds attributes like
    :attr:`model` and :attr:`master` and :attr:`master_key` who are
    important because Lino handles relations automagically.

    Another class of attributes are `filter`, `exclude` and `sort_order`
    which are thin wrappers to Django's query lookup parameters of same
    name.

    See :class:`dd.Table`.

     N/A model None N/A The model on which this table iterates.

     N/A debug_sql False N/A show_detail_navigator True N/A screenshot_profiles N/A admin N/A 
    The user profile(s) for which we want a screenshot of this table.
     N/A use_as_default_table True N/A  Set this to `False` if this Table should *not* become the
    Model's default table.

     N/A expand_memos False N/A (No longer used; see :srcref:`docs/tickets/44`).  Whether multi-line text
    fields in Grid views should be expanded in by default or not.

     N/A handle_uploaded_files None N/A 
    Handler for uploaded files.
    Same remarks as for :attr:`lino.core.actors.Actor.disabled_fields`.
     get_chooser_for_field N/A N/A self fieldname N/A N/A N/A ch N/A N/A N/A super Table self get_chooser_for_field fieldname N/A N/A ch None N/A N/A ch N/A N/A N/A self model None N/A N/A N/A N/A N/A self model get_chooser_for_field fieldname N/A classmethod request N/A N/A self master_instance N/A None kw N/A N/A N/A N/A kw update actor self N/A N/A master_instance None N/A N/A N/A N/A kw update master_instance master_instance N/A N/A N/A kw setdefault action N/A self default_action N/A N/A TableRequest kw N/A classmethod column_choices N/A N/A self N/A N/A N/A N/A N/A de name N/A de N/A N/A self wildcard_data_elems N/A classmethod get_screenshot_requests N/A N/A self language N/A N/A N/A N/A N/A self model None N/A N/A N/A N/A N/A N/A self model _meta abstract N/A N/A N/A N/A self N/A N/A self model _lino_default_table N/A N/A N/A profiles2user N/A dict N/A u N/A N/A N/A N/A N/A settings SITE user_model objects filter language language N/A N/A N/A N/A u profile N/A N/A N/A u profile name N/A self screenshot_profiles N/A N/A N/A u profile profiles2user N/A N/A N/A profiles2user N/A N/A u profile u N/A user N/A list N/A N/A profiles2user values N/A N/A N/A self detail_action N/A N/A N/A N/A N/A N/A self detail_action request user user N/A classmethod get_detail_sets N/A N/A self N/A N/A N/A 
        Yield a list of (app_label,name) tuples for which the kernel
        should try to create a Detail Set.
         N/A N/A N/A self model None N/A yield_model_detail_sets N/A N/A m N/A N/A N/A b N/A m __bases__ N/A N/A N/A N/A issubclass b N/A models Model N/A b N/A models Model N/A N/A ds N/A yield_model_detail_sets b N/A N/A N/A ds N/A N/A N/A N/A N/A N/A m _meta app_label / N/A m __name__ N/A N/A ds N/A yield_model_detail_sets N/A self model N/A N/A N/A ds N/A s N/A N/A N/A super Table self get_detail_sets N/A N/A N/A s N/A classmethod get_widget_options N/A N/A cls name N/A options N/A N/A N/A N/A N/A cls model get_widget_options name options N/A classmethod get_pk_field N/A N/A self N/A N/A N/A N/A N/A N/A self model _meta pk N/A classmethod get_row_by_pk N/A N/A self ar pk N/A N/A N/A Implements :meth:`get_row_by_pk
        <lino.core.actors.Actor.get_row_by_pk>` for a database
        table.

         N/A N/A N/A N/A N/A N/A N/A self model objects get pk pk N/A N/A N/A ValueError N/A N/A None N/A N/A N/A N/A self model DoesNotExist N/A N/A None N/A classmethod disabled_actions N/A N/A self ar obj N/A N/A N/A d N/A dict N/A N/A obj None N/A N/A state N/A N/A self get_row_state obj N/A ba N/A N/A self get_actions N/A N/A ar bound_action action N/A N/A N/A N/A ba action action_name N/A N/A N/A N/A N/A ba action show_in_bbar N/A N/A N/A self get_row_permission obj ar state ba N/A N/A N/A d N/A N/A N/A ba action action_name True N/A d N/A classmethod wildcard_data_elems N/A N/A self N/A N/A N/A N/A N/A fields wildcard_data_elems N/A self model N/A classmethod is_valid_row N/A N/A self row N/A N/A N/A N/A isinstance row N/A self model N/A classmethod get_actor_label N/A N/A self N/A N/A N/A N/A N/A self model None N/A N/A N/A N/A N/A super Table self get_actor_label N/A N/A N/A self _label N/A N/A N/A self model _meta verbose_name_plural N/A classmethod class_init N/A N/A self N/A N/A N/A N/A N/A self model None N/A N/A N/A self model N/A resolve_model N/A self model N/A self app_label N/A N/A isinstance N/A self model UnresolvedModel N/A N/A N/A self model None N/A N/A N/A self model None N/A N/A N/A isinstance N/A self hidden_columns basestring N/A N/A N/A self hidden_columns N/A frozenset N/A N/A fields fields_list N/A self model N/A self hidden_columns N/A N/A self hidden_columns N/A N/A self model hidden_columns N/A N/A isinstance N/A self active_fields basestring N/A N/A N/A self active_fields N/A frozenset N/A N/A fields fields_list N/A self model N/A self active_fields N/A N/A self active_fields N/A N/A self model active_fields N/A N/A self hidden_elements N/A N/A self model hidden_elements N/A b N/A N/A N/A self model mro N/A N/A N/A k v N/A list N/A N/A N/A b __dict__ items N/A N/A N/A isinstance v N/A actions Action N/A N/A existing_value N/A N/A N/A self __dict__ get k NOT_PROVIDED N/A N/A existing_value NOT_PROVIDED N/A N/A N/A setattr self k v N/A N/A N/A existing_value None N/A N/A N/A N/A N/A N/A isinstance existing_value N/A actions Action N/A N/A N/A Exception N/A %s cannot install model action %s because name is already used for %r self k existing_value N/A name N/A workflow_state_field workflow_owner_field N/A N/A N/A N/A getattr self name None N/A N/A N/A setattr self name N/A getattr N/A self model name N/A name N/A handle_uploaded_files N/A N/A N/A N/A getattr self name None N/A N/A m N/A getattr N/A self model name None N/A N/A m None N/A N/A N/A setattr self name N/A model2actor m N/A N/A self master_key N/A N/A master_model None N/A N/A N/A fk N/A N/A N/A N/A self model _meta get_field N/A self master_key N/A N/A N/A fk rel None N/A N/A master_model N/A N/A fk rel model N/A N/A N/A isinstance fk ChoiceListField N/A N/A master_model N/A N/A fk choicelist item_class N/A N/A N/A isinstance fk GenericForeignKey N/A N/A master_model ContentType N/A N/A N/A Exception N/A N/A Unsupported master_key {0} ({1}) format fk N/A fk __class__ N/A N/A N/A N/A models FieldDoesNotExist N/A N/A vf N/A N/A N/A self model _meta virtual_fields N/A N/A N/A N/A vf name N/A self master_key N/A N/A fk vf N/A master_model ContentType N/A N/A N/A master_model None N/A N/A df N/A getattr N/A self model N/A self master_key None N/A N/A df None N/A N/A msg N/A N/A No field '{0}' in {1} format N/A self master_key N/A self model N/A N/A Exception N/A N/A INVALID_MK format N/A self master_key self msg N/A N/A N/A isinstance df N/A fields DummyField N/A N/A N/A self abstract True N/A N/A msg N/A N/A Cannot handle master key {0} format df N/A msg N/A N/A  (20150820 virtual fields: {0}) format N/A N/A vf name N/A vf N/A N/A N/A self model _meta virtual_fields N/A N/A Exception N/A N/A INVALID_MK format N/A self master_key self msg N/A N/A N/A self master master_model N/A N/A self master_field fk N/A N/A N/A N/A super Table self class_init N/A N/A N/A self order_by None N/A N/A N/A N/A isinstance N/A self order_by N/A list tuple N/A N/A N/A Exception N/A %s.order_by is %r (must be a list or tuple) N/A self N/A self order_by N/A False N/A N/A fieldname N/A self order_by N/A N/A N/A N/A fieldname startswith - N/A N/A fieldname N/A fieldname N/A 1 N/A N/A N/A N/A fk remote direct m2m N/A N/A N/A N/A self model _meta get_field_by_name fieldname N/A direct N/A N/A m2m N/A N/A N/A N/A models FieldDoesNotExist N/A N/A N/A Exception N/A Unknown fieldname %r in %s.order_by N/A fieldname self N/A classmethod do_setup N/A N/A self N/A N/A N/A N/A N/A N/A super Table self do_setup N/A N/A N/A self model None N/A N/A N/A N/A hasattr N/A self model _lino_slaves N/A N/A N/A self _slaves N/A list N/A N/A N/A N/A self model _lino_slaves values N/A N/A N/A self _slaves N/A N/A m N/A getattr N/A self model setup_table None N/A N/A m None N/A N/A N/A m self N/A classmethod is_abstract N/A N/A self N/A N/A N/A N/A N/A N/A self model None N/A N/A self model Model N/A N/A N/A self model _meta abstract N/A N/A True N/A N/A self abstract N/A classmethod disabled_fields N/A N/A cls obj ar N/A N/A N/A N/A N/A obj disabled_fields ar N/A classmethod get_row_permission N/A N/A cls obj ar state ba N/A N/A N/A Returns True if the given action is allowed for the given instance
        `obj` and the given user.

         N/A N/A obj None N/A N/A True N/A N/A N/A obj get_row_permission ar state ba N/A classmethod disable_delete N/A N/A self obj ar N/A N/A N/A 
        Return either `None` if the given `obj` *is allowed*
        to be deleted by action request `ar`,
        or a string with a message explaining why, if not.
         N/A N/A N/A self delete_action None N/A N/A No delete_action N/A N/A N/A N/A self get_row_permission obj ar N/A N/A self get_row_state obj N/A self delete_action N/A N/A N/A _ You have no permission to delete this row. N/A N/A N/A obj disable_delete ar N/A classmethod get_data_elem N/A N/A self name N/A N/A N/A 
        Adds the possibility to specify
        :class:`remote fields <lino.core.fields.RemoteField>`
        in a layout template.
         N/A N/A N/A self model None N/A N/A N/A N/A N/A isinstance N/A self model type N/A N/A issubclass N/A self model N/A models Model N/A N/A N/A Exception N/A %s.model is %r (and not a Model subclass) N/A self N/A self model N/A de N/A N/A N/A self model get_data_elem name N/A N/A de None N/A N/A de N/A N/A N/A N/A super Table self get_data_elem name N/A classmethod get_request_queryset N/A N/A self rr N/A N/A N/A Build a Queryset for the specified ActionRequest on this table.

        Upon first call, this will also lazily install Table.queryset
        which will be reused on every subsequent call.

        The return value is othe of the following:

        - a Django queryset
        - a list or tuple

        - If you override this, you may turn this method into a
          generator. The only advantage of this is syntax, since the
          yeld objects will be stored in a tuple.

         N/A qs N/A N/A self get_queryset rr N/A N/A qs None N/A N/A N/A N/A N/A N/A self model objects none N/A kw N/A N/A self get_filter_kw rr N/A N/A kw None N/A N/A N/A N/A N/A N/A self model objects none N/A N/A len kw N/A N/A qs N/A N/A qs filter kw N/A N/A rr exclude N/A N/A qs N/A N/A qs exclude N/A rr exclude N/A k N/A self simple_parameters N/A N/A v N/A getattr N/A rr param_values k N/A v N/A N/A qs N/A N/A qs filter N/A k v N/A N/A self filter N/A N/A qs N/A N/A qs filter N/A self filter N/A N/A rr filter N/A N/A qs N/A N/A qs filter N/A rr filter N/A N/A rr known_values N/A N/A d N/A N/A N/A k v N/A list N/A N/A N/A rr known_values items N/A N/A N/A v None N/A N/A N/A d N/A N/A k __isnull True N/A N/A N/A d N/A k v N/A qs N/A N/A qs filter d N/A N/A self exclude N/A N/A qs N/A N/A qs exclude N/A self exclude N/A N/A N/A rr quick_search None N/A N/A qs N/A add_quick_search_filter qs N/A rr quick_search N/A N/A N/A rr gridfilters None N/A N/A qs N/A add_gridfilters qs N/A rr gridfilters N/A extra N/A N/A rr extra N/A self extra N/A N/A extra None N/A N/A qs N/A N/A qs extra extra N/A order_by N/A N/A rr order_by N/A self order_by N/A order_by N/A N/A qs N/A N/A qs order_by order_by N/A N/A self debug_sql N/A N/A N/A N/A logger info %s %s N/A self debug_sql N/A qs query N/A qs N/A classmethod get_queryset N/A N/A self ar N/A N/A N/A 
        Return an iterable over the items processed by this table.
        Override this to use e.g. select_related() or to return a list.

        Return a customized default queryset
    
        Example::

          def get_queryset(self):
              return self.model.objects.select_related('country', 'city')


         N/A N/A N/A N/A self model get_request_queryset ar N/A classmethod get_title_tags N/A N/A self ar N/A N/A N/A t N/A N/A N/A super Table self get_title_tags ar N/A N/A N/A t N/A t N/A N/A N/A self model get_title_tags ar N/A N/A N/A t N/A classmethod create_instance N/A N/A self ar N/A kw N/A N/A 
        Create a model instance using the specified keyword args,
        calling also :meth:`lino.core.model.Model.on_create`.
         N/A instance N/A N/A self model kw N/A N/A N/A instance on_create ar N/A instance N/A classmethod N/A table_factory N/A N/A model N/A N/A N/A 
    Automatically define a Table class for the specified model.
    This is used during kernel setup to create default tables for
    models who have no Table.
     N/A bases N/A Table N/A b N/A model __bases__ N/A N/A rpt N/A getattr b _lino_default_table None N/A N/A rpt None N/A N/A N/A issubclass model N/A rpt model N/A N/A bases N/A rpt N/A app_label N/A N/A model _meta app_label N/A name N/A N/A model __name__ Table N/A cls N/A type name bases N/A dict model model app_label app_label N/A N/A N/A actors register_actor cls N/A column_choices N/A N/A rptname N/A N/A N/A rpt N/A N/A actors get_actor rptname N/A N/A N/A rpt column_choices N/A