

def render_portal(self, portal):
    '\n        Render a portal object (as from external_portal_description)\n        into a block of text, which can be used in page output. This\n        is non-yieldy; the portal data must all be already loaded.\n        If portal is None, returns nothing.\n        '
    if (not portal):
        return ''
    return self.render_string('portal_block.html', portal=portal)

dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py MyHandlerMixin.render_portal/original