コード例 #1
0
 def __init__(self, modelCls, toJson, routeParams={}, recordValueProvider=EvenIfNone(RecordValueProvider()), decorators=[]):
     """ Initialize the Create Controller """
     JSONController.__init__(self, decorators=decorators)
     self.modelCls = modelCls
     self.toJson = toJson
     self.routeParams = routeParams
     self.recordValueProvider = recordValueProvider
コード例 #2
0
 def __init__(self, formInfo):
     """ Initialize the Controller """
     self.formInfo = formInfo
     JSONController.__init__(
         self, decorators=[auth.requires_auth, requires_admin])
コード例 #3
0
 def __init__(self, formInfo):
     """ Initialize the List Controller """
     self.formInfo = formInfo
     JSONController.__init__(self, decorators=[auth.requires_auth, requires_admin])
コード例 #4
0
 def __init__(self, modelCls, toJson, decorators=[]):
     """ Initialize the Record Controller """
     JSONController.__init__(self, decorators=decorators)
     self.modelCls = modelCls
     self.toJson = toJson
コード例 #5
0
 def __init__(self, modelCls, toJson, routeParams={}, decorators=[]):
     """ Initialize the List Controller """
     JSONController.__init__(self, decorators=decorators)
     self.modelCls = modelCls
     self.toJson = toJson
     self.routeParams = routeParams
コード例 #6
0
 def __init__(self, modelCls, decorators=[]):
     """ Initialize the Delete Controller """
     JSONController.__init__(self, decorators=decorators)
     self.modelCls = modelCls