class WithConstant(dataobject.DataObject):
     alwaysTheSame = fields.Constant(noninconstant)
Exemple #2
0
class Viewset(CouchObject):

    language = fields.Constant('javascript')
    views = fields.Dict(fields.Object(View))
Exemple #3
0
class Zot(RemoteObject):
    kind = fields.Constant("tag:api.example.com,2009;Zot")
    size = fields.Field()
    born = fields.Datetime()
Exemple #4
0
class Twiddle(RemoteObject):
    kind = fields.Constant("tag:api.example.com,2009;Twiddle")
    name = fields.Field()
    frob = fields.Object(Frob, api_name="frobnitz")
    zotz = fields.List(fields.Object(Zot))
Exemple #5
0
class Frob(RemoteObject):
    kind = fields.Constant("tag:api.example.com,2009;Frobnitz")
    name = fields.Field()
    size = fields.Field()
    attr = fields.Dict(fields.Field())