Ejemplo n.º 1
0
class FileForm2(mf.Form):
    name = Str()
    ctime = mf.Nested(DateTriple)

    class Meta:
        layout = Layout([
            LColumn("name", widget="row"),
            LColumn("ctime.year", "ctime.month", "ctime.day", widget="tri")
        ])
Ejemplo n.º 2
0
class PersonForm(mf.Form):
    name = mf.String()
    age = mf.String()
    birth = mf.Nested(DateTriple)

    class Meta:
        layout = Layout([
            LColumn("name", widget="default"),
            LColumn("age", widget="default"),
            LColumn("birth.year", "birth.month", "birth.day", widget="date"),
        ])
Ejemplo n.º 3
0
 class PairNameForm(Class):
     left = mf.Nested(HasNameForm)
     right = mf.Nested(HasNameForm)
Ejemplo n.º 4
0
class FileForm(mf.Form):
    name = Str()
    ctime = mf.Nested(DateTriple)
Ejemplo n.º 5
0
class Form2(mf.Form):
    utime = mf.Nested(DateTriples)
Ejemplo n.º 6
0
 def _makeNested(self, *args, **kwargs):
     import marshmallow_form as mf
     return mf.Nested(*args, **kwargs)
Ejemplo n.º 7
0
 class UTime(Class):
     utime = mf.Nested(Date)
Ejemplo n.º 8
0
class ParentsForm(mf.Form):
    father = mf.Nested(PersonForm, label="父親")
    mother = mf.Nested(PersonForm, label="母親")
Ejemplo n.º 9
0
 class InformationForm(mf.Form):
     zip = mf.String()
     tel = mf.String()
     address = mf.Nested(AddressForm)
Ejemplo n.º 10
0
class HasName(mf.Form):
    name = mf.String(doc="name of hasname")
    ctime = mf.Nested(DateTriple)
Ejemplo n.º 11
0
class Form(mf.Form):
    class Meta:
        metadata = {"action": "POST"}

    ctime = mf.Nested(DateTriple, overrides={"year": {"doc": "year of ctime"}})
Ejemplo n.º 12
0
 class Z(Class):
     y0 = mf.Nested(Y)
     y1 = mf.Nested(Y)
Ejemplo n.º 13
0
 class Y(Class):
     x0 = mf.Nested(X)
     x1 = mf.Nested(X)
Ejemplo n.º 14
0
 class ParentsForm(Class):
     yagou = mf.String()
     father = mf.Nested(PersonForm)
     mother = mf.Nested(PersonForm)
Ejemplo n.º 15
0
 class PastPresentFutureForm(Class):
     past = mf.Nested(PairNameForm)
     present = mf.Nested(PairNameForm)
     future = mf.Nested(PairNameForm)
Ejemplo n.º 16
0
 class FamilyCardForm(mf.Form):
     father = mf.Nested(PersonForm)
     mother = mf.Nested(PersonForm)
     info = mf.Nested(InformationForm)
Ejemplo n.º 17
0
class ParentsForm(mf.Form):
    father = mf.Nested(PersonForm, label="父親", overrides={"name": {"label": "父親の名前"}})
    mother = mf.Nested(PersonForm, label="母親")
Ejemplo n.º 18
0
 class FileForm(self._getTarget()):
     name = mf.String()
     ctime = mf.Nested(DateTriple)
Ejemplo n.º 19
0
 class CTime(Class):
     ctime = mf.Nested(Date)