def test(self, request): """ This cannot be simplified into a one liner... """ return test_rights(request, self.request_test, self.permission)
def render(self, request, obj, path = None, form = None): s = CellRenderer.render(self, request, obj, path) if test_rights(request, self.request_test, self.permission): return self.render_from_string(request, obj, s) else: return s