Commit 67516d2c authored by Aurelien Campeas's avatar Aurelien Campeas
Browse files

[views] fix NameError (there is no kwargs here)

parent 120d62cc7ca4
......@@ -12,7 +12,7 @@ from logilab.mtconverter import xml_escape
from cubicweb import Unauthorized
from cubicweb.predicates import is_instance, none_rset, non_final_entity
from cubicweb.web import box, action, component
from cubicweb.web import action, component
from cubicweb.web.views import primary, uicfg
# displayed by the basket box
......@@ -132,7 +132,7 @@ class BasketBox(component.CtxComponent):
_('add to basket'), xml_escape(basket.name))
linkto = u'in_basket:%s:object' % '_'.join(addable)
msg = self._cw._('selection added to basket')
rql = self._cw.form.get('rql') or kwargs.get('rql') or ''
rql = self._cw.form.get('rql', '')
vid = self._cw.form.get('vid', '')
url = self._cw.build_url('edit', eid=basket.eid, rql=rql,
__linkto=linkto, __message=msg,
......@@ -146,7 +146,7 @@ class BasketBox(component.CtxComponent):
delete = '%s:in_basket:%s' % ('_'.join(str(eid) for eid in inbasketeids),
basket.eid)
msg = self._cw._('Basket %s emptied') % basket.name
rql = self._cw.form.get('rql') or kwargs.get('rql') or ''
rql = self._cw.form.get('rql', '')
vid = self._cw.form.get('vid', '')
url = self._cw.build_url('edit', rql=rql, __delete=delete,
__message=msg, __redirectrql=rql,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment