コード例 #1
0
ファイル: preview.py プロジェクト: JacobWay/edx-platform
 def applicable_aside_types(self, block):
     """
     Remove acid_aside and honor the config record
     """
     if not StudioConfig.asides_enabled(block.scope_ids.block_type):
         return []
     return [
         aside_type
         for aside_type in super(PreviewModuleSystem, self).applicable_aside_types(block)
         if aside_type != 'acid_aside'
     ]
コード例 #2
0
 def applicable_aside_types(self, block):
     """
     Remove acid_aside and honor the config record
     """
     if not StudioConfig.asides_enabled(block.scope_ids.block_type):
         return []
     return [
         aside_type for aside_type in super(
             PreviewModuleSystem, self).applicable_aside_types(block)
         if aside_type != 'acid_aside'
     ]
コード例 #3
0
ファイル: preview.py プロジェクト: angelapper/edx-platform
    def applicable_aside_types(self, block):
        """
        Remove acid_aside and honor the config record
        """
        if not StudioConfig.asides_enabled(block.scope_ids.block_type):
            return []

        # TODO: aside_type != 'acid_aside' check should be removed once AcidBlock is only installed during tests
        # (see https://openedx.atlassian.net/browse/TE-811)
        return [
            aside_type for aside_type in super().applicable_aside_types(block)
            if aside_type != 'acid_aside'
        ]
コード例 #4
0
ファイル: preview.py プロジェクト: sliva/edx-platform
    def applicable_aside_types(self, block):
        """
        Remove acid_aside and honor the config record
        """
        if not StudioConfig.asides_enabled(block.scope_ids.block_type):
            return []

        # TODO: aside_type != 'acid_aside' check should be removed once AcidBlock is only installed during tests
        # (see https://openedx.atlassian.net/browse/TE-811)
        return [
            aside_type for aside_type in super(
                PreviewModuleSystem, self).applicable_aside_types(block)  # lint-amnesty, pylint: disable=super-with-arguments
            if aside_type != 'acid_aside'
        ]