def make_absolute_url(self, url):
        base_url = self.db.config['PROJECT'].get('url')
        if base_url is None:
            raise RuntimeError('To use absolute URLs you need to configure '
                               'the URL in the project config.')
        return url_join(base_url.rstrip('/') + '/', url.lstrip('/'))
Given a URL this makes it absolute if this is possible.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Pad.make_absolute_url