示例#1
0
文件: fields.py 项目: vlaght/iktomi
 class _Form(Form):
     fields = [
         FieldBlock('field block', [
             Field('number', convs.Int()),
             FieldBlock('field block', [
                 Field('title', convs.Char()),
             ]),
         ]),
     ]
示例#2
0
文件: fields.py 项目: vlaght/iktomi
 class _Form(Form):
     fields = [
         FieldSet('fs',
                  fields=[
                      FieldBlock('field block',
                                 [Field('number', convs.Int())]),
                  ])
     ]
示例#3
0
文件: fields.py 项目: vlaght/iktomi
 class _Form(Form):
     fields = [
         FieldBlock('field block',
                    fields=[
                        Field('number', convs.Int()),
                        Field('title', convs.Char()),
                    ],
                    permissions='r'),
     ]
示例#4
0
文件: fields.py 项目: vlaght/iktomi
 class F(Form):
     fields = [
         Field('top', conv=convs.Int(), initial=246),
         FieldBlock('',
                    fields=[
                        Field('num', conv=convs.Int()),
                        Field('f2', conv=AssertConv())
                    ])
     ]
示例#5
0
文件: fields.py 项目: vlaght/iktomi
 class F(Form):
     fields = [
         FieldSet('fieldset',
                  fields=[
                      FieldList('fieldlist',
                                field=FieldSet(
                                    None, fields=[Field('subfield')]))
                  ]),
         FieldBlock('field block', [Field('blocksubfield')],
                    name='block')
     ]
示例#6
0
文件: fields.py 项目: vlaght/iktomi
 class _Form(Form):
     fields = [
         FieldBlock('field block', [Field('number', convs.Int())],
                    conv=FieldBlock.conv(validator)),
     ]