# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1291761955 -3600 # Tue Dec 07 23:45:55 2010 +0100 # Branch stable # Node ID 12fe2b633c0c716f4c972e6b82b42bf03ffdf51c # Parent a8feab1628f6ab8e37860030d3aec3fa4ff56dbb avoid AssertionError if no 'rql' in form params diff --git a/entities.py b/entities.py --- a/entities.py +++ b/entities.py @@ -19,4 +19,4 @@ def actual_url(self): if not self.embed: return self.url - return self._cw.build_url('embed', url=self.url, rql=self._cw.form.get('rql')) + return self._cw.build_url('embed', url=self.url, rql=self._cw.form.get('rql') or u'')