Esempio n. 1
0
 class WithConstant(dataobject.DataObject):
     alwaysTheSame = fields.Constant(noninconstant)
Esempio n. 2
0
class Viewset(CouchObject):

    language = fields.Constant('javascript')
    views = fields.Dict(fields.Object(View))
Esempio n. 3
0
class Zot(RemoteObject):
    kind = fields.Constant("tag:api.example.com,2009;Zot")
    size = fields.Field()
    born = fields.Datetime()
Esempio n. 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))
Esempio n. 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())