Module ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Return NameLoad orelse Return NameLoad decorator_list If UnaryOpNot Call NameLoad NameLoad body Return Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Return Assign NameStore CompareEq Call AttributeLoad NameLoad attr Str ListLoad SubscriptLoad NameLoad Index Str If NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Return Assign NameStore BinOpAdd Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn Str NameLoad body Return If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Return For NameStore SubscriptLoad NameLoad Index Str body If UnaryOpNot Call NameLoad NameLoad NameLoad body Continue If CompareNotIn Str NameLoad body Continue If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Continue Assign SubscriptStore NameLoad Index Str ListLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BoolOpOr CompareIs NameLoad NameLoad CompareEq NameLoad ListLoad decorator_list Assign NameStore CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str If BoolOpAnd NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Dict Str Call AttributeLoad NameLoad attr Str decorator_list
N/A h.api uri h.api._compat string_types prepare N/A N/A annotation fetcher N/A N/A N/A Prepare the given annotation for storage. N/A N/A set_group_if_reply annotation fetcher fetcher N/A N/A insert_group_if_none annotation N/A N/A set_group_permissions annotation N/A N/A fix_old_style_comments annotation N/A N/A normalize_annotation_target_uris annotation N/A set_group_if_reply N/A N/A annotation fetcher N/A N/A N/A 
    If the annotation is a reply set its group to that of its parent.

    If the annotation is a reply to another annotation (or a reply to a reply
    and so on) then it always belongs to the same group as the original
    annotation. If the client sent any 'group' field in the annotation we will
    just overwrite it!
     is_reply N/A N/A annotation N/A N/A N/A Return True if this annotation is a reply. N/A N/A N/A annotation get references N/A N/A True N/A N/A False N/A N/A N/A N/A is_reply annotation N/A N/A N/A top_level_annotation_id N/A N/A annotation N/A references N/A 0 N/A top_level_annotation N/A fetcher top_level_annotation_id N/A N/A top_level_annotation None N/A N/A N/A N/A group top_level_annotation N/A N/A N/A annotation N/A group N/A top_level_annotation N/A group N/A N/A N/A group annotation N/A N/A N/A annotation N/A group N/A insert_group_if_none N/A N/A annotation N/A N/A N/A N/A N/A N/A annotation get group N/A N/A N/A annotation N/A group __world__ N/A set_group_permissions N/A N/A annotation N/A N/A N/A Set the given annotation's permissions according to its group. N/A permissions N/A N/A annotation get permissions N/A N/A permissions None N/A N/A N/A is_private N/A N/A N/A permissions get read N/A N/A annotation N/A user N/A is_private N/A N/A N/A group N/A N/A annotation get group N/A N/A group __world__ N/A N/A N/A group_principal N/A group: group N/A N/A N/A annotation N/A permissions N/A read N/A group_principal N/A normalize_annotation_target_uris N/A N/A annotation N/A N/A N/A N/A target annotation N/A N/A N/A N/A N/A isinstance N/A annotation N/A target list N/A N/A N/A target N/A annotation N/A target N/A N/A N/A N/A isinstance target dict N/A N/A N/A N/A source target N/A N/A N/A N/A N/A isinstance N/A target N/A source string_types N/A N/A N/A N/A target N/A scope N/A N/A N/A uri normalize N/A target N/A source N/A fix_old_style_comments N/A N/A annotation N/A N/A N/A 
    Transform an old-style, targetless "comment" into one with a target.

    If this annotation has a URI, but no targets and no references, then it's
    an "old-style" comment or "page note". Detect this for old clients and
    rewrite the annotation target property.
     isempty N/A N/A container field N/A N/A N/A val N/A N/A container get field N/A N/A N/A val None N/A val N/A N/A N/A has_uri N/A N/A N/A annotation get uri None N/A has_no_targets N/A isempty annotation target N/A has_no_references N/A isempty annotation references N/A N/A has_uri has_no_targets has_no_references N/A N/A N/A annotation N/A target N/A N/A source N/A N/A annotation get uri N/A