コード例 #1
0
 def __init__(self, Model, **kwargs):
   super().__init__(
     **kwargs,
     description='',
     children={
       method_constants.FILTER: FilterSchema(Model),
       method_constants.GET: GetSchema(Model),
       method_constants.SET: SetSchemaWithChallenge(Model, origin=set_constants.ORIGIN),
       account_superadmin_method_constants.LOCK: AccountSuperadminLockSchema(Model),
     },
   )
コード例 #2
0
 def __init__(self, Model, mode=None, **kwargs):
   super().__init__(
     **kwargs,
     description='',
     children={
       method_constants.FILTER: FilterSchema(Model),
       method_constants.GET: GetSchema(Model),
       method_constants.SET: SetSchemaWithChallenge(
         Model,
         mode=mode,
         origin=set_constants.ORIGIN,
       ),
     },
   )