2005-07-13 09:25:57 +08:00
|
|
|
class AnonymousUser:
|
2005-11-14 07:33:05 +08:00
|
|
|
id = None
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
return 'AnonymousUser'
|
|
|
|
|
|
|
|
def save(self):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def delete(self):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def set_password(self, raw_password):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def check_password(self, raw_password):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
2005-07-14 11:17:09 +08:00
|
|
|
def get_group_list(self):
|
2005-07-13 09:25:57 +08:00
|
|
|
return []
|
|
|
|
|
|
|
|
def set_groups(self, group_id_list):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
2005-07-14 11:17:09 +08:00
|
|
|
def get_permission_list(self):
|
2005-07-13 09:25:57 +08:00
|
|
|
return []
|
|
|
|
|
|
|
|
def set_permissions(self, permission_id_list):
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
def has_perm(self, perm):
|
|
|
|
return False
|
|
|
|
|
2005-11-15 22:43:56 +08:00
|
|
|
def has_module_perms(self, module):
|
|
|
|
return False
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
def get_and_delete_messages(self):
|
|
|
|
return []
|
|
|
|
|
|
|
|
def is_anonymous(self):
|
|
|
|
return True
|