Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Assert CompareIsNot NameLoad NameLoad Assert NameLoad If CompareIs NameLoad NameLoad body Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot NameLoad body Raise NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Return SubscriptLoad AttributeLoad NameLoad attr Slice UnaryOpUSub NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Return BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad orelse Raise NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Raise NameLoad orelse Raise NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body TryExcept body Return Call NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Return CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str decorator_list Assign NameStore NameLoad
N/A N/A Python datastore class User to be used as a datastore data type.

Classes defined here:
  User: object representing a user.
  Error: base exception type
  UserNotFoundError: UserService exception
  RedirectTooLongError: UserService exception
  NotAllowedError: UserService exception
 N/A os google.appengine.api apiproxy_stub_map google.appengine.api user_service_pb google.appengine.runtime apiproxy_errors Error N/A Exception N/A N/A Base User error type. N/A UserNotFoundError N/A Error N/A N/A Raised by User.__init__() when there's no email argument and no user is
  logged in. N/A RedirectTooLongError N/A Error N/A N/A Raised by UserService calls if the generated redirect URL was too long.
   N/A NotAllowedError N/A Error N/A N/A Raised by UserService calls if the requested redirect URL is not allowed.
   N/A User N/A object N/A N/A A user.

  We provide the email address, nickname, auth domain, and id for a user.

  A nickname is a human-readable string which uniquely identifies a Google
  user, akin to a username. It will be an email address for some users, but
  not all.
   N/A __user_id None __init__ N/A N/A self email _auth_domain _user_id N/A None None None N/A N/A Constructor.

    Args:
      email: An optional string of the user's email address. It defaults to
          the current user's email address.

    Raises:
      UserNotFoundError: Raised if the user is not logged in and the email
          argument is empty.
     N/A N/A _auth_domain None N/A N/A _auth_domain N/A N/A N/A os environ get AUTH_DOMAIN N/A N/A N/A email None N/A _auth_domain N/A N/A email None N/A N/A N/A USER_EMAIL N/A os environ N/A email N/A N/A os environ N/A USER_EMAIL N/A N/A N/A _user_id None N/A USER_ID N/A os environ N/A N/A _user_id N/A N/A os environ N/A USER_ID N/A N/A email N/A N/A UserNotFoundError N/A N/A self __email email N/A N/A self __auth_domain _auth_domain N/A N/A self __user_id N/A _user_id None N/A nickname N/A N/A self N/A N/A N/A Return this user's nickname.

    The nickname will be a unique, human readable identifier for this user
    with respect to this application. It will be an email address for some
    users, but not all.
     N/A N/A N/A self __email N/A self __auth_domain N/A N/A N/A self __email endswith N/A @ N/A self __auth_domain N/A N/A suffix_len N/A N/A len N/A self __auth_domain 1 N/A N/A N/A self __email N/A N/A suffix_len N/A N/A N/A self __email N/A email N/A N/A self N/A N/A N/A Return this user's email address. N/A N/A self __email N/A user_id N/A N/A self N/A N/A N/A Return either a permanent unique identifying string or None.

    If the email address was set explicity, this will return None.
     N/A N/A self __user_id N/A auth_domain N/A N/A self N/A N/A N/A Return this user's auth domain. N/A N/A self __auth_domain N/A __unicode__ N/A N/A self N/A N/A N/A N/A unicode N/A N/A self nickname N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A N/A self nickname N/A __repr__ N/A N/A self N/A N/A N/A N/A self __user_id N/A N/A N/A users.User(email='%s',_user_id='%s') N/A N/A N/A self email N/A N/A self user_id N/A N/A N/A users.User(email='%s') N/A N/A self email N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A N/A self __email N/A self __auth_domain N/A __cmp__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other User N/A N/A NotImplemented N/A N/A cmp N/A N/A self __email N/A self __auth_domain N/A N/A other __email N/A other __auth_domain N/A N/A create_login_url N/A N/A dest_url _auth_domain N/A None N/A N/A Computes the login URL for this request and specified destination URL.

  Args:
    dest_url: String that is the desired final destination URL for the user
              once login is complete. If 'dest_url' does not have a host
              specified, we will use the host from the current request.

  Returns:
    string
   N/A req N/A N/A user_service_pb CreateLoginURLRequest N/A resp N/A N/A user_service_pb CreateLoginURLResponse N/A N/A N/A req set_destination_url dest_url N/A _auth_domain N/A N/A N/A N/A req set_auth_domain _auth_domain N/A N/A N/A N/A N/A apiproxy_stub_map MakeSyncCall user CreateLoginURL req resp N/A N/A N/A N/A apiproxy_errors ApplicationError N/A e N/A N/A N/A N/A e application_error N/A N/A user_service_pb UserServiceError REDIRECT_URL_TOO_LONG N/A N/A RedirectTooLongError N/A N/A N/A N/A e application_error N/A N/A user_service_pb UserServiceError NOT_ALLOWED N/A N/A NotAllowedError N/A N/A e N/A N/A N/A resp login_url N/A N/A CreateLoginURL create_login_url create_logout_url N/A N/A dest_url _auth_domain N/A None N/A N/A Computes the logout URL for this request and specified destination URL.

  Args:
    dest_url: String that is the desired final destination URL for the user
              once logout is complete. If 'dest_url' does not have a host
              specified, we will use the host from the current request.

  Returns:
    string
   N/A req N/A N/A user_service_pb CreateLogoutURLRequest N/A resp N/A N/A user_service_pb CreateLogoutURLResponse N/A N/A N/A req set_destination_url dest_url N/A _auth_domain N/A N/A N/A N/A req set_auth_domain _auth_domain N/A N/A N/A N/A N/A apiproxy_stub_map MakeSyncCall user CreateLogoutURL req resp N/A N/A N/A N/A apiproxy_errors ApplicationError N/A e N/A N/A N/A N/A e application_error N/A N/A user_service_pb UserServiceError REDIRECT_URL_TOO_LONG N/A N/A RedirectTooLongError N/A N/A e N/A N/A N/A resp logout_url N/A N/A CreateLogoutURL create_logout_url get_current_user N/A N/A N/A N/A N/A N/A N/A N/A User N/A N/A N/A UserNotFoundError N/A N/A None N/A N/A GetCurrentUser get_current_user is_current_user_admin N/A N/A N/A N/A N/A Return true if the user making this request is an admin for this
  application, false otherwise.

  We specifically make this a separate function, and not a member function of
  the User class, because admin status is not persisted in the datastore. It
  only exists for the user making this request right now.
   N/A N/A N/A N/A N/A os environ get USER_IS_ADMIN 0 1 N/A N/A IsCurrentUserAdmin is_current_user_admin