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