Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/s/i/silva.core.contentlayout-3.0.5/src/silva/core/contentlayout/designs/registry.py   silva.core.contentlayout(Download)
 
from ..interfaces import IDesignLookup
from ..utils import verify_context
 
 
                obj = self.addable
                implements = True
            comply, require = verify_context(design, obj, implements)
            if not comply:
                return False

src/s/i/silva.core.contentlayout-3.0.5/src/silva/core/contentlayout/service.py   silva.core.contentlayout(Download)
from .blocks.registry import registry as block_registry
from .designs.registry import registry as design_registry
from .utils import verify_context
 
 
                  mapping=dict(design=self.design)))
        addable = get_content_class(self.content_type)
        comply, require = verify_context(design, addable, True)
        if not comply:
            raise ValueError(

src/s/i/silva.core.contentlayout-3.0.5/src/silva/core/contentlayout/blocks/manager.py   silva.core.contentlayout(Download)
from ..interfaces import IBlockManager, IBoundBlockManager, IBlockController
from ..interfaces import IBlockConfigurations, IBlockConfiguration, IBlock
from ..utils import verify_context
 
_marker = object()
    def is_available(self, view):
        comply, require = verify_context(self.block, view.context)
        return comply