node ids shall not begin with a number stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 20 Oct 2009 14:24:19 +0200
branchstable
changeset 3748 7143198dd8a4
parent 3747 9165bd634f90
child 3749 a84e798b99f6
node ids shall not begin with a number
web/views/editforms.py
--- a/web/views/editforms.py	Tue Oct 20 13:54:40 2009 +0200
+++ b/web/views/editforms.py	Tue Oct 20 14:24:19 2009 +0200
@@ -222,7 +222,7 @@
 
     def _build_args(self, entity, rtype, role, formid, default, reload, lzone,
                     extradata=None):
-        divid = '%s-%s-%s' % (entity.eid, rtype, role)
+        divid = '%s-%s-%s' % (rtype, role, entity.eid)
         event_args = {'divid' : divid, 'eid' : entity.eid, 'rtype' : rtype,
                       'reload' : dumps(reload), 'default' : default, 'role' : role, 'vid' : u'',
                       'lzone' : lzone}