Exemple #1
0
 def test(self, request):
     """ This cannot be simplified into a one liner... """
     return test_rights(request, self.request_test, self.permission)
Exemple #2
0
 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