Skip to content

Commit 3498801

Browse files
committed
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.
1 parent 0504440 commit 3498801

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

roundup/security.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ def set_props_only_default(self, props_only=None):
387387
Permission.limit_perm_to_props_only = \
388388
bool(props_only)
389389

390+
def get_props_only_default(self):
391+
return Permission.limit_perm_to_props_only
392+
390393
def addPermissionToRole(self, rolename, permission, classname=None,
391394
properties=None, check=None, props_only=None):
392395
''' Add the permission to the role's permission list.

test/test_xmlrpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def setUp(self):
3131
# open the database
3232
self.db = self.instance.open('admin')
3333

34+
print "props_only default", self.db.security.get_props_only_default()
35+
3436
# Get user id (user4 maybe). Used later to get data from db.
3537
self.joeid = 'user' + self.db.user.create(username='joe',
3638
password=password.Password('random'), address='[email protected]',
@@ -197,7 +199,7 @@ def testAuthAllowedCreate(self):
197199
def testAuthFilter(self):
198200
# this checks if we properly check for search permissions
199201
self.db.security.permissions = {}
200-
self.db.security.set_props_only_default(props_only=False)
202+
# self.db.security.set_props_only_default(props_only=False)
201203
self.db.security.addRole(name='User')
202204
self.db.security.addRole(name='Project')
203205
self.db.security.addPermissionToRole('User', 'Web Access')

0 commit comments

Comments
 (0)