comparison rhodecode/tests/models/test_users_group_permissions_on_groups.py @ 3828:f5270697be3e beta

fixed models tests and stacked proxy objects error
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 08 May 2013 23:58:44 +0200
parents 7e3d89d9d3a2
children 5067d6e826a5
comparison
equal deleted inserted replaced
3827:ff57547c9cf7 3828:f5270697be3e
29 if not repos_group: 29 if not repos_group:
30 raise Exception('Cannot get group %s' % group_name) 30 raise Exception('Cannot get group %s' % group_name)
31 perms_updates = [[test_u2_gr_id, perm, 'users_group']] 31 perms_updates = [[test_u2_gr_id, perm, 'users_group']]
32 ReposGroupModel()._update_permissions(repos_group, 32 ReposGroupModel()._update_permissions(repos_group,
33 perms_updates=perms_updates, 33 perms_updates=perms_updates,
34 recursive=recursive) 34 recursive=recursive,
35 check_perms=False)
35 Session().commit() 36 Session().commit()
36 37
37 38
38 def setup_module(): 39 def setup_module():
39 global test_u2_id, test_u2_gr_id, _get_repo_perms, _get_group_perms 40 global test_u2_id, test_u2_gr_id, _get_repo_perms, _get_group_perms