Module Expr Str Import alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Return Dict Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num SubscriptLoad Call AttributeLoad NameLoad attr Index Num Raise Call NameLoad Call AttributeLoad Str attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list
N/A N/A Some shared utility functions for manipulating user data. N/A re split_user N/A N/A userid N/A N/A N/A Return the user and domain parts from the given user id as a dict.

    For example if userid is u'acct:seanh@hypothes.is' then return
    {'username': u'seanh', 'domain': u'hypothes.is'}'

    :raises ValueError: if the given userid isn't a valid userid

     N/A match N/A N/A re match ^acct:([^@]+)@(.*)$ userid N/A match N/A N/A N/A username domain N/A N/A N/A match groups N/A 0 N/A N/A N/A match groups N/A 1 N/A N/A ValueError N/A N/A {userid} isn't a valid userid format userid userid N/A userid_from_username N/A N/A username request N/A N/A N/A Return the full user ID for the given username.

    For example for username "seanh" return "acct:seanh@hypothes.is"
    (if we're at domain "hypothes.is").

     N/A N/A N/A acct:{username}@{domain} format username username domain N/A request auth_domain N/A