Esempio n. 1
0
 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)
Esempio n. 2
0
 def __init__(self):
     """ Initialize the JSON Controller with its required decorators """
     JSONController.__init__(self, decorators=[requires_auth])
Esempio n. 3
0
 def __init__(self):
     """ Initialize the JSON Controller with its required decorators """
     JSONController.__init__(self, decorators=[requires_auth])
Esempio n. 4
0
 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)