[entity] fix typo in absolute_url method, breaking some code w/ control of absolute url of external entities stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Sep 2010 18:18:29 +0200
branchstable
changeset 6307 c07763c59fcb
parent 6306 e6557be1127e
child 6308 c151c730a1ac
[entity] fix typo in absolute_url method, breaking some code w/ control of absolute url of external entities
entity.py
--- a/entity.py	Wed Sep 22 18:17:40 2010 +0200
+++ b/entity.py	Wed Sep 22 18:18:29 2010 +0200
@@ -492,7 +492,7 @@
         # in linksearch mode, we don't want external urls else selecting
         # the object for use in the relation is tricky
         # XXX search_state is web specific
-        if 'base-url' not in kwargs and \
+        if 'base_url' not in kwargs and \
                getattr(self._cw, 'search_state', ('normal',))[0] == 'normal':
             kwargs['base_url'] = self.cw_metainformation()['source'].get('base-url')
             use_ext_id = bool(kwargs['base_url'])