def set_visibility(problem_index, groups):
     problem = container_page.xblocks[problem_index]
     problem.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(
         self.browser, problem.locator)
     visibility_dialog.select_groups_in_partition_scheme(
         visibility_dialog.CONTENT_GROUP_PARTITION, groups)
Exemplo n.º 2
0
 def set_visibility(problem_index, groups, group_partition='content_group'):
     problem = container_page.xblocks[problem_index]
     problem.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(self.browser, problem.locator)
     partition_name = (visibility_dialog.ENROLLMENT_TRACK_PARTITION
                       if group_partition == enrollment_group
                       else visibility_dialog.CONTENT_GROUP_PARTITION)
     visibility_dialog.select_groups_in_partition_scheme(partition_name, groups)
 def set_visibility(problem_index, content_group, second_content_group=None):
     problem = container_page.xblocks[problem_index]
     problem.edit_visibility()
     if second_content_group:
         ComponentVisibilityEditorView(self.browser, problem.locator).select_option(
             second_content_group, save=False
         )
     ComponentVisibilityEditorView(self.browser, problem.locator).select_option(content_group)
 def set_visibility(html_block_index, groups):
     """
     Set visibility on html blocks to specified groups.
     """
     html_block = container_page.xblocks[html_block_index]
     html_block.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(self.browser, html_block.locator)
     visibility_dialog.select_groups_in_partition_scheme(visibility_dialog.CONTENT_GROUP_PARTITION, groups)
 def set_visibility(problem_index, groups, group_partition='content_group'):
     problem = container_page.xblocks[problem_index]
     problem.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(self.browser, problem.locator)
     partition_name = (visibility_dialog.ENROLLMENT_TRACK_PARTITION
                       if group_partition == enrollment_group
                       else visibility_dialog.CONTENT_GROUP_PARTITION)
     visibility_dialog.select_groups_in_partition_scheme(partition_name, groups)
 def set_visibility(html_block_index, groups):
     """
     Set visibility on html blocks to specified groups.
     """
     html_block = container_page.xblocks[html_block_index]
     html_block.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(self.browser, html_block.locator)
     visibility_dialog.select_groups_in_partition_scheme(visibility_dialog.CONTENT_GROUP_PARTITION, groups)
 def set_visibility(html_block_index,
                    content_group,
                    second_content_group=None):
     """
     Set visibility on html blocks to specified groups.
     """
     html_block = container_page.xblocks[html_block_index]
     html_block.edit_visibility()
     if second_content_group:
         ComponentVisibilityEditorView(
             self.browser,
             html_block.locator).select_option(second_content_group,
                                               save=False)
     ComponentVisibilityEditorView(
         self.browser, html_block.locator).select_option(content_group)
Exemplo n.º 8
0
 def set_visibility(problem_index, groups):
     problem = container_page.xblocks[problem_index]
     problem.edit_visibility()
     visibility_dialog = ComponentVisibilityEditorView(self.browser, problem.locator)
     visibility_dialog.select_groups_in_partition_scheme(visibility_dialog.CONTENT_GROUP_PARTITION, groups)