def render(self): return render_str("piece.html", p = self)
def render_str(self, template, **params): params['user'] = self.user return render_str(template, **params)