web/views/cwproperties.py
changeset 2051 e4d24e4d74e6
parent 2048 5e4d1433b90b
parent 2018 5abd684d5b9d
child 2058 7ef12c03447c
child 2085 9e279029d7a0
equal deleted inserted replaced
2050:ce184fdb1e56 2051:e4d24e4d74e6
   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]