def populateCollaboratorRole(): roleService = support.entityFor(IRoleService) assert isinstance(roleService, IRoleService) roleService.assignRight(blogRoleCollaboratorId(), rightId(rightLivedeskView())) roleService.assignRight(blogRoleCollaboratorId(), rightId(rightManageOwnPost())) roleService.assignRight(blogRoleCollaboratorId(), rightId(rightMediaArchiveView())) roleService.assignRight(blogRoleCollaboratorId(), rightId(rightMediaArchiveUpload())) roleService.assignRole(blogRoleAdministratorId(), blogRoleCollaboratorId())