author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Sat, 07 May 2011 10:51:36 +0200 | |
branch | stable |
changeset 7331 | 7fcc4f22f3e4 |
parent 7330 | 584907154ce3 |
child 7332 | c3ae97c0066b |
child 7333 | 0deded0dc5da |
--- a/devtools/testlib.py Sat May 07 09:37:07 2011 +0200 +++ b/devtools/testlib.py Sat May 07 10:51:36 2011 +0200 @@ -400,7 +400,7 @@ session = self.session pname = unicode(pname) plabel = plabel and unicode(plabel) or unicode(group) - e = entity.eid + e = getattr(entity, 'eid', entity) with security_enabled(session, False, False): peid = session.execute( 'INSERT CWPermission X: X name %(pname)s, X label %(plabel)s,'