示例#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'
     ]
示例#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
    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) if aside_type != 'acid_aside'
        ]
示例#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)
            if aside_type != 'acid_aside'
        ]