

@presentation.render_for(BoardMember)
def render_BoardMember(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=('%s' % self.role))
    else:
        return h.div(self.user.render(h), class_='member')

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