equal
deleted
inserted
replaced
215 mainform=False) |
215 mainform=False) |
216 subform.append_field(PropertyValueField(name='value', label=label, |
216 subform.append_field(PropertyValueField(name='value', label=label, |
217 eidparam=True)) |
217 eidparam=True)) |
218 subform.vreg = self.vreg |
218 subform.vreg = self.vreg |
219 subform.form_add_hidden('pkey', key, eidparam=True) |
219 subform.form_add_hidden('pkey', key, eidparam=True) |
220 subform.form_add_hidden("current-value:%s" % entity.eid,) |
220 subform.form_add_hidden("current-value:%s" % entity.eid,) |
221 form.form_add_subform(subform) |
221 form.form_add_subform(subform) |
222 return subform |
222 return subform |
223 |
223 |
224 def is_user_prefs(cls, req, rset, row=None, col=0, **kwargs): |
224 def is_user_prefs(cls, req, rset, row=None, col=0, **kwargs): |
225 return req.user.eid == rset[row or 0][col] |
225 return req.user.eid == rset[row or 0][col] |