equal
deleted
inserted
replaced
89 role of the entity in the relation (eg 'subject' or 'object') |
89 role of the entity in the relation (eg 'subject' or 'object') |
90 :fieldset: |
90 :fieldset: |
91 optional fieldset to which this field belongs to |
91 optional fieldset to which this field belongs to |
92 :order: |
92 :order: |
93 key used by automatic forms to sort fields |
93 key used by automatic forms to sort fields |
94 |
94 :ignore_req_params: |
|
95 when true, this field won't consider value potentialy specified using |
|
96 request's form parameters (eg you won't be able to specify a value using for |
|
97 instance url like http://mywebsite.com/form?field=value) |
95 """ |
98 """ |
96 # default widget associated to this class of fields. May be overriden per |
99 # default widget associated to this class of fields. May be overriden per |
97 # instance |
100 # instance |
98 widget = fw.TextInput |
101 widget = fw.TextInput |
99 # does this field requires a multipart form |
102 # does this field requires a multipart form |
111 internationalizable = False |
114 internationalizable = False |
112 fieldset = None |
115 fieldset = None |
113 order = None |
116 order = None |
114 value = _MARKER |
117 value = _MARKER |
115 fallback_on_none_attribute = False |
118 fallback_on_none_attribute = False |
|
119 ignore_req_params = False |
116 |
120 |
117 def __init__(self, name=None, label=_MARKER, widget=None, **kwargs): |
121 def __init__(self, name=None, label=_MARKER, widget=None, **kwargs): |
118 for key, val in kwargs.items(): |
122 for key, val in kwargs.items(): |
119 if key == 'initial': |
123 if key == 'initial': |
120 warn('[3.6] use value instead of initial', DeprecationWarning, |
124 warn('[3.6] use value instead of initial', DeprecationWarning, |