

@presentation.render_for(BoardMember, model='overlay')
def render_BoardMember_overlay(self, h, comp, *args):
    application_url = h.request.application_url
    if security.has_permissions('manage', self.board):
        return self.user.on_answer((lambda action: self.dispatch(action, application_url))).render(h, model=('overlay-%s' % self.role))
    else:
        member = self.user.render(h, 'avatar')
        member.attrib.update({
            'class': 'avatar unselectable',
        })
        return member

dataset/ETHPy150Open Net-ng/kansha/kansha/board/view.py render_BoardMember_overlay/original