Ejemplo n.º 1
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'
     ]
Ejemplo n.º 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'
     ]
Ejemplo n.º 3
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 []

        # 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'
        ]
Ejemplo n.º 4
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 []

        # 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'
        ]