# HG changeset patch # User Sylvain Thénault # Date 1285172309 -7200 # Node ID c07763c59fcbc9807c11276a081521bdc985c9fc # Parent e6557be1127e33cf847557e9f97941c6efa7aebf [entity] fix typo in absolute_url method, breaking some code w/ control of absolute url of external entities diff -r e6557be1127e -r c07763c59fcb 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'])