[views/reledit] funky API made this fatal (it was previously only eating the second argument) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 22 Dec 2010 18:42:31 +0100
branchstable
changeset 6755 799ae44925c4
parent 6754 ab6886d52788
child 6756 46297c498842
[views/reledit] funky API made this fatal (it was previously only eating the second argument)
web/views/reledit.py
--- a/web/views/reledit.py	Wed Dec 22 18:28:52 2010 +0100
+++ b/web/views/reledit.py	Wed Dec 22 18:42:31 2010 +0100
@@ -78,7 +78,7 @@
         assert rtype
         assert role in ('subject', 'object'), '%s is not an acceptable role value' % role
         self._cw.add_css('cubicweb.form.css')
-        self._cw.add_js('cubicweb.reledit.js', 'cubicweb.edition.js', 'cubicweb.ajax.js')
+        self._cw.add_js(('cubicweb.reledit.js', 'cubicweb.edition.js', 'cubicweb.ajax.js'))
         entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema[rtype]
         self._rules = rctrl.etype_get(entity.e_schema.type, rschema.type, role, '*')