示例#1
0
        class nsa_decl(gexml.Model):
            class meta:
                tagname = "nsa"
                namespace = "test:"
                namespace_prefix = "t"

            f1 = fields.Integer(attrname=("test:", "f1"))
示例#2
0
        class junk(gexml.Model):
            class meta:
                order_sensitive = True

            name = fields.String(tagname=True)
            notes = fields.List(fields.String(tagname="note"))
            amount = fields.Integer(tagname=True)
示例#3
0
 class nsc(gexml.Model):
     f1 = fields.Integer(tagname=("test:", "f1"))
示例#4
0
 class nsa(gexml.Model):
     f1 = fields.Integer(attrname=("test:", "f1"))
示例#5
0
 class bacon(gexml.Model):
     num_rashers = fields.Integer()
示例#6
0
 class SaneChoice(gexml.Model):
     item = fields.Choice(fields.String(), fields.Integer())
示例#7
0
 class person(gexml.Model):
     name = fields.String()
     age = fields.Integer()
示例#8
0
 class person(petbase):
     name = fields.String()
     age = fields.Integer()
     status = fields.String(tagname=("S:", "status"), required=False)
示例#9
0
 class hello(gexml.Model):
     recipient = fields.String()
     sentby = fields.String(attrname="sender")
     strength = fields.Integer(default=1)
     message = fields.String(tagname="msg")