author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 21 Jan 2010 10:39:12 +0100 | |
changeset 4303 | 35e814dce815 |
parent 4302 | 8bedd7506d6e |
child 4304 | 0b53e850cdb5 |
web/formfields.py | file | annotate | diff | comparison | revisions |
--- a/web/formfields.py Thu Jan 21 10:38:46 2010 +0100 +++ b/web/formfields.py Thu Jan 21 10:39:12 2010 +0100 @@ -204,9 +204,11 @@ return '%s-%s' % (self.name, self.role) return self.name - def dom_id(self, form): + def dom_id(self, form, suffix=None): """return an html dom identifier for this field""" id = self.id or self.role_name() + if suffix is not None: + id += suffix if self.eidparam: return eid_param(id, form.edited_entity.eid) return id