Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad SubscriptLoad NameLoad Index Num Index Num keyword NameLoad keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body If CompareEq NameLoad NameLoad body Return Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad keyword AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad NameLoad keyword NameLoad FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Expr Call NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Str keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict attr Str Assert CompareEq NameLoad BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad Str NameLoad NameLoad orelse If BoolOpOr CompareNotIn Str NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad Str NameLoad NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad Str NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict attr Str Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str body Return Assert CompareEq NameLoad Call AttributeLoad NameLoad attr With Call NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad SubscriptLoad NameLoad Index Str attr comprehension NameStore NameLoad If CompareNotIn Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list
N/A N/A datetime N/A logging django.conf settings django.apps apps django.db models connections django.dispatch receiver django.db.models.signals post_save google.appengine.api datastore google.appengine.ext deferred djangae.db transaction djangae.fields RelatedSetField djangae.contrib.mappers.pipes MapReduceTask DjangaeMapperPipeline PIPELINE_BASE_PATH djangae.db.utils django_instance_to_entity djangae.db.unique_utils unique_identifiers_from_entity djangae.db.constraints UniqueMarker djangae.db.caching disable_cache N/A ACTION_TYPES N/A N/A check Check N/A repair Repair N/A clean Clean N/A ACTION_STATUSES N/A N/A running Running N/A done Done N/A LOG_MSGS N/A N/A missing_marker Marker for the unique constraint is missing N/A missing_instance Unique constraint marker exists, but doesn't point to the instance N/A already_assigned Marker is assigned to a different instance already N/A old_instance_key Marker was created when instance was a StringProperty N/A MAX_ERRORS 100 encode_model N/A N/A model N/A N/A N/A N/A %s,%s N/A N/A N/A model _meta app_label N/A N/A model _meta model_name N/A decode_model N/A N/A model_str N/A N/A N/A N/A N/A apps get_model N/A N/A model_str split , N/A ActionLog N/A N/A models Model N/A N/A instance_key N/A N/A models TextField N/A marker_key N/A N/A models CharField max_length 500 N/A log_type N/A N/A models CharField max_length 255 choices LOG_MSGS N/A action N/A N/A models ForeignKey UniqueAction N/A UniqueAction N/A N/A models Model N/A N/A action_type N/A N/A models CharField choices ACTION_TYPES max_length 100 N/A model N/A N/A models CharField max_length 100 N/A db N/A N/A models CharField max_length 100 default default N/A status N/A N/A models CharField choices ACTION_STATUSES default N/A N/A ACTION_STATUSES N/A 0 N/A 0 editable False max_length 100 N/A logs N/A RelatedSetField ActionLog editable False N/A _log_action N/A N/A action_id log_type instance_key marker_key N/A N/A _atomic N/A N/A action_id log_type instance_key marker_key N/A N/A N/A action N/A N/A N/A UniqueAction objects get pk action_id N/A N/A N/A len N/A action logs MAX_ERRORS N/A N/A N/A log N/A N/A N/A ActionLog objects create action_id action_id log_type log_type instance_key instance_key marker_key marker_key N/A N/A N/A N/A action logs add log N/A N/A N/A action save N/A N/A N/A transaction atomic xg True N/A N/A _atomic action_id log_type instance_key marker_key N/A log N/A N/A action_id log_type instance_key marker_key defer N/A True N/A N/A  Shorthand for creating an ActionLog.

    Defer doesn't accept an inline function or an atomic wrapped function directly, so
    we defer a helper function, which wraps the transactionaly decorated one.  N/A defer N/A N/A N/A N/A deferred defer _log_action action_id log_type instance_key marker_key N/A N/A N/A _log_action action_id log_type instance_key marker_key N/A start_action N/A N/A sender instance created raw N/A kwargs N/A N/A N/A created False N/A N/A N/A kwargs N/A dict action_pk N/A instance pk N/A N/A N/A instance action_type clean N/A N/A N/A N/A kwargs update model N/A instance model N/A N/A N/A N/A CleanMapper db N/A instance db start kwargs N/A N/A N/A N/A kwargs update repair N/A N/A instance action_type repair N/A N/A N/A N/A CheckRepairMapper model N/A decode_model N/A instance model db N/A instance db start kwargs N/A N/A receiver post_save sender UniqueAction _finish N/A N/A N/A args kwargs N/A N/A action_pk N/A N/A kwargs get action_pk finish_the_action N/A N/A N/A N/A N/A action N/A N/A N/A UniqueAction objects get pk action_pk N/A N/A action status done N/A N/A N/A action save N/A N/A transaction atomic N/A N/A finish_the_action N/A RawMapperMixin N/A object N/A get_model_app_ N/A N/A self N/A N/A N/A None N/A start N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A db N/A self db N/A mapper_parameters N/A entity_kind keys_only kwargs args namespace N/A self kind False kwargs args N/A N/A N/A N/A N/A settings DATABASES get N/A self db N/A get NAMESPACE N/A N/A mapper_parameters N/A _map N/A N/A self get_relative_path N/A self map N/A pipe N/A DjangaeMapperPipeline N/A self job_name djangae.contrib.mappers.thunks.thunk_map mapreduce.input_readers.RawDatastoreInputReader params mapper_parameters shards N/A self shard_count N/A N/A N/A pipe start base_path PIPELINE_BASE_PATH N/A N/A CheckRepairMapper N/A MapReduceTask N/A N/A name action_mapper N/A kind _djangae_unique_marker start N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A db N/A self db N/A N/A N/A N/A super CheckRepairMapper self start args kwargs N/A finish N/A N/A N/A args kwargs N/A N/A N/A _finish args kwargs N/A staticmethod map N/A N/A instance N/A args kwargs N/A N/A  Figure out what markers the instance should use and verify they're attached to
        this instance. Log any weirdness and in repair mode - recreate missing markers.  N/A action_id N/A N/A kwargs get action_pk N/A repair N/A N/A kwargs get repair N/A alias N/A N/A kwargs get db default N/A namespace N/A N/A N/A N/A N/A settings DATABASES get alias N/A get NAMESPACE N/A N/A alias N/A N/A N/A instance _state db default N/A entity N/A django_instance_to_entity N/A connections N/A alias N/A type instance N/A N/A instance _meta fields raw True instance instance check_null False N/A identifiers N/A unique_identifiers_from_entity N/A type instance entity ignore_pk True N/A identifier_keys N/A N/A N/A N/A datastore Key from_path N/A N/A UniqueMarker kind i namespace namespace N/A i identifiers N/A markers N/A N/A datastore Get identifier_keys N/A instance_key N/A str N/A N/A entity key N/A markers_to_save N/A N/A N/A i m N/A zip identifier_keys markers N/A N/A marker_key N/A str i N/A N/A m None N/A N/A repair N/A N/A new_marker N/A N/A datastore Entity N/A N/A UniqueMarker kind name N/A N/A i name namespace namespace N/A N/A new_marker N/A instance N/A N/A entity key N/A N/A new_marker N/A created N/A N/A N/A datetime datetime now N/A N/A N/A markers_to_save append new_marker N/A N/A N/A log action_id missing_marker instance_key marker_key N/A N/A N/A N/A instance m N/A N/A m N/A instance N/A N/A repair N/A N/A N/A m N/A instance N/A N/A entity key N/A N/A N/A markers_to_save append m N/A N/A N/A log action_id missing_instance instance_key marker_key N/A N/A N/A N/A m N/A instance N/A N/A entity key N/A N/A N/A isinstance N/A m N/A instance basestring N/A N/A N/A m N/A instance N/A N/A datastore Key N/A m N/A instance N/A repair N/A N/A N/A N/A markers_to_save append m N/A N/A N/A log action_id old_instance_key instance_key marker_key N/A N/A N/A m N/A instance N/A N/A entity key N/A N/A N/A log action_id already_assigned instance_key marker_key N/A markers_to_save N/A N/A N/A N/A datastore Put markers_to_save N/A staticmethod N/A CleanMapper N/A RawMapperMixin MapReduceTask N/A N/A name action_clean_mapper N/A kind _djangae_unique_marker finish N/A N/A N/A args kwargs N/A N/A N/A _finish args kwargs N/A staticmethod map N/A N/A entity model N/A args kwargs N/A N/A  The Clean mapper maps over all UniqueMarker instances.  N/A alias N/A N/A kwargs get db default N/A namespace N/A N/A N/A N/A N/A settings DATABASES get alias N/A get NAMESPACE N/A model N/A decode_model model N/A N/A N/A N/A N/A N/A N/A N/A entity key id_or_name startswith N/A N/A N/A model _meta db_table | N/A N/A N/A N/A namespace N/A N/A entity namespace N/A N/A disable_cache N/A N/A instance_id N/A N/A N/A entity N/A instance id_or_name N/A N/A N/A instance N/A N/A N/A N/A N/A model objects using alias get pk instance_id N/A N/A N/A N/A model DoesNotExist N/A N/A N/A N/A logging info Deleting unique marker %s because the associated instance no longer exists N/A N/A N/A N/A entity key id_or_name N/A N/A N/A datastore Delete entity N/A N/A instance_entity N/A django_instance_to_entity N/A connections N/A alias model N/A N/A instance _meta fields raw True instance instance check_null False N/A identifiers N/A unique_identifiers_from_entity model instance_entity ignore_pk True N/A identifier_keys N/A N/A N/A N/A datastore Key from_path N/A N/A UniqueMarker kind i namespace N/A N/A N/A entity N/A instance namespace N/A i identifiers N/A N/A N/A N/A entity key identifier_keys N/A N/A N/A N/A logging info Deleting unique marker %s because the it no longer represents the associated instance state N/A N/A N/A N/A entity key id_or_name N/A N/A N/A datastore Delete entity N/A staticmethod N/A