[table view] should use __regid__ instead of hard-coded 'table' view identifier stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 May 2010 17:30:28 +0200
branchstable
changeset 5529 7446f5807b33
parent 5528 5d1b2ae7d459
child 5530 da21e3fbe240
[table view] should use __regid__ instead of hard-coded 'table' view identifier
web/views/tableview.py
--- a/web/views/tableview.py	Mon May 17 17:29:54 2010 +0200
+++ b/web/views/tableview.py	Mon May 17 17:30:28 2010 +0200
@@ -76,7 +76,7 @@
         # drop False / None values from vidargs
         vidargs = dict((k, v) for k, v in vidargs.iteritems() if v)
         w(u'<form method="post" cubicweb:facetargs="%s" action="">' %
-          xml_escape(dumps([divid, 'table', False, vidargs])))
+          xml_escape(dumps([divid, self.__regid__, False, vidargs])))
         w(u'<fieldset id="%sForm" class="%s">' % (divid, hidden and 'hidden' or ''))
         w(u'<input type="hidden" name="divid" value="%s" />' % divid)
         w(u'<input type="hidden" name="fromformfilter" value="1" />')