Mercurial > p > roundup > code
comparison roundup/security.py @ 5199:1f72b73d7770
Still trying to figure out why travis ci fails without a call to
self.db.security.set_props_only_default(props_only=False)
Trying a call to new function get_props.... in the instance init
routine to see if the class prop is misconfigured or something.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 18 Mar 2017 14:42:05 -0400 |
| parents | e0732fd6a6c7 |
| children | c94fd717e28c |
comparison
equal
deleted
inserted
replaced
| 5198:f070841dee95 | 5199:1f72b73d7770 |
|---|---|
| 385 # (3,) == (True,) is False even though 3 is a True value | 385 # (3,) == (True,) is False even though 3 is a True value |
| 386 # in a boolean context. So use bool() to coerce value. | 386 # in a boolean context. So use bool() to coerce value. |
| 387 Permission.limit_perm_to_props_only = \ | 387 Permission.limit_perm_to_props_only = \ |
| 388 bool(props_only) | 388 bool(props_only) |
| 389 | 389 |
| 390 def get_props_only_default(self): | |
| 391 return Permission.limit_perm_to_props_only | |
| 392 | |
| 390 def addPermissionToRole(self, rolename, permission, classname=None, | 393 def addPermissionToRole(self, rolename, permission, classname=None, |
| 391 properties=None, check=None, props_only=None): | 394 properties=None, check=None, props_only=None): |
| 392 ''' Add the permission to the role's permission list. | 395 ''' Add the permission to the role's permission list. |
| 393 | 396 |
| 394 'rolename' is the name of the role to add the permission to. | 397 'rolename' is the name of the role to add the permission to. |
