equal
deleted
inserted
replaced
82 if key in NAV_FORM_PARAMETERS: |
82 if key in NAV_FORM_PARAMETERS: |
83 self.form_add_hidden(key, val) |
83 self.form_add_hidden(key, val) |
84 elif hasattr(self.__class__, key) and not key[0] == '_': |
84 elif hasattr(self.__class__, key) and not key[0] == '_': |
85 setattr(self, key, val) |
85 setattr(self, key, val) |
86 else: |
86 else: |
87 self.extra_kwargs[key] = val |
87 self.cw_extra_kwargs[key] = val |
88 # skip other parameters, usually given for selection |
88 # skip other parameters, usually given for selection |
89 # (else write a custom class to handle them) |
89 # (else write a custom class to handle them) |
90 if mainform: |
90 if mainform: |
91 self.form_add_hidden('__errorurl', self.session_key()) |
91 self.form_add_hidden('__errorurl', self.session_key()) |
92 self.form_add_hidden('__domid', self.domid) |
92 self.form_add_hidden('__domid', self.domid) |
183 value = self._req_display_value(field) |
183 value = self._req_display_value(field) |
184 if value is None: |
184 if value is None: |
185 if field.name in rendervalues: |
185 if field.name in rendervalues: |
186 value = rendervalues[field.name] |
186 value = rendervalues[field.name] |
187 elif field.name in self.cw_extra_kwargs: |
187 elif field.name in self.cw_extra_kwargs: |
188 value = self.extra_kwargs[field.name] |
188 value = self.cw_extra_kwargs[field.name] |
189 else: |
189 else: |
190 value = self.form_field_value(field, load_bytes) |
190 value = self.form_field_value(field, load_bytes) |
191 if callable(value): |
191 if callable(value): |
192 value = value(self) |
192 value = value(self) |
193 if value != INTERNAL_FIELD_VALUE: |
193 if value != INTERNAL_FIELD_VALUE: |