Module Expr Str Assign NameStore Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Yield Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body ImportFrom alias Assign SubscriptStore NameLoad Index Str Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assert CompareEq AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr
N/A N/A Viewfinder activity.

  Activities are associated with a viewpoint and contain a record of all high-level operations
  which have modified the structure of the viewpoint in some way. For example, each upload and
  share operation will create an activity, since each action creates a new episode within a
  viewpoint. Each activity is associated with a custom set of arguments, which are typically
  the identifiers of assets involved in the operation. For example, a share activity would
  contain the identifiers of the episodes and photos that were shared. See the header for
  notification.py for a discussion of how activities are different from notifications.
 N/A __author__ andy@emailscrubbed.com (Andy Kimball) N/A json tornado gen viewfinder.backend.db vf_schema viewfinder.backend.db.asset_id IdPrefix ConstructTimestampAssetId DeconstructTimestampAssetId VerifyAssetId viewfinder.backend.db.base DBObject viewfinder.backend.db.operation Operation viewfinder.backend.db.range_base DBRangeObject Activity N/A DBRangeObject N/A N/A Viewfinder activity data object. N/A __slots__ N/A N/A _table N/A N/A N/A DBObject _schema GetTable N/A vf_schema ACTIVITY MakeMetadataDict N/A N/A self N/A N/A N/A Constructs a dictionary containing activity metadata in a format that conforms to
    ACTIVITY in json_schema.py.
     N/A activity_dict N/A N/A self _asdict N/A N/A activity_dict N/A N/A N/A activity_dict pop name N/A N/A json loads N/A N/A activity_dict pop json N/A activity_dict N/A ConstructActivityId N/A N/A cls timestamp device_id uniquifier N/A N/A N/A Returns an activity id constructed from component parts. Activities sort from newest
    to oldest. See "ConstructTimestampAssetId" for details of the encoding.
     N/A N/A ConstructTimestampAssetId N/A IdPrefix Activity timestamp device_id uniquifier N/A classmethod ConstructActivityIdFromOperationId N/A N/A cls timestamp operation_id N/A N/A N/A Returns an activity id constructed by combining the specified timestamp and the
    device_id and device_op_id from the operation_id.
     N/A N/A device_id uniquifier N/A N/A Operation DeconstructOperationId operation_id N/A N/A N/A Activity ConstructActivityId timestamp device_id uniquifier N/A classmethod DeconstructActivityId N/A N/A cls activity_id N/A N/A N/A Returns the components of an activity id: timestamp, device_id, and uniquifier. N/A N/A DeconstructTimestampAssetId N/A IdPrefix Activity activity_id N/A classmethod VerifyActivityId N/A N/A cls client user_id device_id activity_id N/A N/A N/A Ensures that a client-provided activity id is valid according to the rules specified
    in VerifyAssetId.
     N/A N/A N/A VerifyAssetId client user_id device_id N/A IdPrefix Activity activity_id has_timestamp True N/A classmethod N/A gen coroutine CreateAddFollowers N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq follower_ids N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    an "add_followers" operation.
     N/A args_dict N/A follower_ids follower_ids N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq add_followers args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateMergeAccounts N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq target_user_id source_user_id N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "merge_accounts" operation.
     N/A args_dict N/A target_user_id source_user_id target_user_id source_user_id N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq merge_accounts args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreatePostComment N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq cm_dict N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "post_comment" operation.
     N/A args_dict N/A comment_id N/A cm_dict N/A comment_id N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq post_comment args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateRemoveFollowers N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq follower_ids N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    an "remove_followers" operation.
     N/A args_dict N/A follower_ids follower_ids N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq remove_followers args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateRemovePhotos N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dicts N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "remove_photos" operation.
     N/A args_dict N/A episodes N/A N/A episode_id photo_ids N/A ep_dict N/A new_episode_id N/A ep_dict N/A photo_ids N/A ep_dict ep_dicts N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq remove_photos args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateSavePhotos N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dicts N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "save_photos" operation.
     N/A args_dict N/A episodes N/A N/A episode_id photo_ids N/A ep_dict N/A new_episode_id N/A ep_dict N/A photo_ids N/A ep_dict ep_dicts N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq save_photos args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateShareExisting N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dicts N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "share_existing" operation.
     N/A args_dict N/A episodes N/A N/A episode_id photo_ids N/A ep_dict N/A new_episode_id N/A ep_dict N/A photo_ids N/A ep_dict ep_dicts N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq share_existing args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateShareNew N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dicts follower_ids N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "share_new" operation.
     N/A args_dict N/A episodes follower_ids N/A N/A episode_id photo_ids N/A ep_dict N/A new_episode_id N/A ep_dict N/A photo_ids N/A ep_dict ep_dicts follower_ids N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq share_new args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateUnshare N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dicts N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    a "unshare" operation.
     N/A args_dict N/A episodes N/A N/A episode_id photo_ids N/A ep_dict N/A episode_id N/A ep_dict N/A photo_ids N/A ep_dict ep_dicts N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq unshare args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateUpdateEpisode N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dict N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    an "update_episode" operation.
     N/A args_dict N/A episode_id N/A ep_dict N/A episode_id N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq update_episode args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateUpdateViewpoint N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq prev_values N/A N/A N/A Creates an activity that tracks the changes to the specified viewpoint resulting from
    an "update_viewpoint" operation.
     N/A args_dict N/A viewpoint_id viewpoint_id N/A N/A N/A args_dict update prev_values N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq update_viewpoint args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine CreateUploadEpisode N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq ep_dict ph_dicts N/A N/A N/A Create an activity that tracks the changes to the specified viewpoint resulting from
    a "upload_episode" operation.
     N/A args_dict N/A episode_id photo_ids N/A ep_dict N/A episode_id N/A N/A ph_dict N/A photo_id N/A ph_dict ph_dicts N/A activity N/A N/A N/A Activity _CreateActivity client user_id viewpoint_id activity_id timestamp update_seq upload_episode args_dict N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine _CreateActivity N/A N/A cls client user_id viewpoint_id activity_id timestamp update_seq name args_dict N/A N/A N/A Helper method that creates an activity for any kind of operation. N/A activity N/A N/A N/A gen Task N/A Activity Query client viewpoint_id activity_id None must_exist False N/A N/A activity None N/A viewfinder.backend.base message N/A N/A args_dict N/A headers N/A dict version N/A message MAX_MESSAGE_VERSION N/A activity N/A N/A Activity CreateFromKeywords viewpoint_id viewpoint_id activity_id activity_id user_id user_id timestamp timestamp update_seq update_seq name name json N/A N/A json dumps args_dict N/A N/A N/A N/A gen Task N/A activity Update client N/A N/A N/A N/A activity user_id user_id N/A activity user_id N/A N/A N/A gen Return activity N/A classmethod N/A gen coroutine N/A N/A DBObject map_table_attributes