def __init__(self, toJson, pwdScheme=None, legacySchemes=[]): """ Initialize with the mthod to convert to JSON """ self.toJson = toJson self.pwdScheme = PasswordScheme( ) if pwdScheme is None else pwdScheme self.legacySchemes = legacySchemes JSONController.__init__(self)
def __init__(self): """ Initialize the JSON Controller with its required decorators """ JSONController.__init__(self, decorators=[requires_auth])
def __init__(self, toJson, pwdScheme=None, legacySchemes=[]): """ Initialize with the mthod to convert to JSON """ self.toJson = toJson self.pwdScheme = PasswordScheme() if pwdScheme is None else pwdScheme self.legacySchemes = legacySchemes JSONController.__init__(self)