From b0a24149ffc4dd3b945b496e5cdb01111c8cf29a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 11 Jan 2009 22:43:27 +0000 Subject: - Improve test coverage. - Remove old cold which attempts to recover from trying to unpickle a ``z3c.pt`` template; Chameleon has been the templating engine for a good long time now. Running repoze.bfg against a sandbox that has pickled ``z3c.pt`` templates it will now just fail with an unpickling error, but can be fixed by deleting the template cache files. --- repoze/bfg/security.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/security.py') diff --git a/repoze/bfg/security.py b/repoze/bfg/security.py index 860f4a0fd..bdf40d8bc 100644 --- a/repoze/bfg/security.py +++ b/repoze/bfg/security.py @@ -305,9 +305,10 @@ class ViewPermission(object): self.permission_name) def __repr__(self): + view_name = getattr(self.request, 'view_name', None) return '' % (id(self), self.permission_name, - self.request.view_name) + view_name) class ViewPermissionFactory(object): implements(IViewPermissionFactory) -- cgit v1.2.3