Пример #1
0
 def __init__(self, faultString="Acess denied"):
     Fault.__init__(self, ACCESS_DENIED, faultString)
Пример #2
0
 def __init__(self):
     Fault.__init__(self, PERMISSION_DENIED_CODE, _('Permission denied'))
Пример #3
0
 def __init__(self, faultString="Couldn't handle the query"):
     Fault.__init__(self, UNHANDLED, faultString)
Пример #4
0
 def __init__(self, message="Access denied"):
     Fault.__init__(self, ACCESS_DENIED, message)
Пример #5
0
 def __init__(self):
     Fault.__init__(self, AUTHENTICATION_FAILED_CODE,
                    _('Username and/or password is incorrect'))
Пример #6
0
 def __init__(self, message="Access denied"):
     Fault.__init__(self, ACCESS_DENIED, message)
Пример #7
0
 def __init__(self, message="Couldn't handle the query"):
     Fault.__init__(self, UNHANDLED, message)
Пример #8
0
 def __init__(self, message="Couldn't handle the query"):
     Fault.__init__(self, UNHANDLED, message)
Пример #9
0
 def __init__(self):
     Fault.__init__(self, PERMISSION_DENIED_CODE, _('Permission denied'))
Пример #10
0
 def __init__(self):
     Fault.__init__(self, AUTHENTICATION_FAILED_CODE,
                    _('Username and/or password is incorrect'))
Пример #11
0
 def __init__(self, message='访问资源受限!'):  # 定义构造方法
     Fault.__init__(self, ACCESS_DENIED, message)  # 重载超类构造方法
Пример #12
0
 def __init__(self, message='无法处理请求!'):  # 定义构造方法
     Fault.__init__(self, UNHANDLED, message)  # 重载超类构造方法