OpenQuizz
Une application de gestion des contenus pédagogiques
flask_restful.fields Namespace Reference

Data Structures

class  Arbitrary
 
class  Boolean
 
class  DateTime
 
class  Fixed
 
class  Float
 
class  FormattedString
 
class  Integer
 
class  List
 
class  MarshallingException
 
class  Nested
 
class  Raw
 
class  String
 
class  Url
 

Functions

def is_indexable_but_not_string (obj)
 
def get_value (key, obj, default=None)
 
def to_marshallable_type (obj)
 

Variables

 ZERO = MyDecimal()
 
 Price = Fixed
 

Function Documentation

◆ get_value()

def flask_restful.fields.get_value (   key,
  obj,
  default = None 
)
Helper for pulling a keyed value off various types of objects

◆ is_indexable_but_not_string()

def flask_restful.fields.is_indexable_but_not_string (   obj)

◆ to_marshallable_type()

def flask_restful.fields.to_marshallable_type (   obj)
Helper for converting an object to a dictionary only if it is not
dictionary already or an indexable object nor a simple type

Variable Documentation

◆ Price

Price = Fixed

◆ ZERO

ZERO = MyDecimal()