Did I find the right examples for you? yes no

All Samples(25)  |  Call(25)  |  Derive(0)  |  Import(0)
Test whether an interface is implemented by the specification

src/s/i/silva.core.smi-3.0.3/src/silva/core/smi/content/publish/status.py   silva.core.smi(Download)
    def publishTraverse(self, request, name):
        match = re.compile('^(\d+)$').match(name)
        if match:
            version = self.context._getOb(match.group(1), None)
            if IVersion.providedBy(version):
            version1 = self.context._getOb(match.group(1), None)
            version2 = self.context._getOb(match.group(2), None)
            if IVersion.providedBy(version1) and IVersion.providedBy(version2):
                self.version1 = version1
                self.version2 = version2

src/p/r/Products.SilvaFind-3.0.4/Products/SilvaFind/results/widgets.py   Products.SilvaFind(Download)
    def render(self, item):
        content = item.getObject()
        if IVersion.providedBy(content):
            content = content.get_silva_object()
        return self.get_icon(content)
    def render(self, item):
        content = item.getObject()
        title = content.get_title_or_id()
        if IVersion.providedBy(content):
            url = absoluteURL(content.get_silva_object(), self.request)
        # since fulltext always starts with id and title, lets remove that
        idstring = content.id
        if IVersion.providedBy(content):
            idstring = content.get_silva_object().id
        skipwords = len(('%s %s' % (idstring, content.get_title())).split(' '))
            # return the first 20 words
            text = ' '.join(fulltext[:maxwords])
            if IVersion.providedBy(content) and hasattr(content, 'fulltext'):
                realtext = ' '.join(content.fulltext()[2:])
                # replace multiple whitespace characters with one space
            # (with punctuation) if this is a silva document
            text = ' '.join(text)
            if IVersion.providedBy(content) and hasattr(content, 'fulltext'):
                realtext = ' '.join(content.fulltext()[2:])
                # replace multiple whitespace characters with one space

src/s/i/silva.core.references-3.0.4/src/silva/core/references/graph.py   silva.core.references(Download)
    except:
        url = '#'
    if interfaces.IVersion.providedBy(content):
        zope_id = '%s (%s)' % (
            content.get_content().getId(),
            content.getId())
    else:
        zope_id = content.getId()
    if interfaces.ISilvaObject.providedBy(content) or\
            interfaces.IVersion.providedBy(content):

src/s/i/silva.core.contentlayout-3.0.5/src/silva/core/contentlayout/designs/design.py   silva.core.contentlayout(Download)
def set_markers(content, event):
    target = content
    if IVersion.providedBy(content):
        target = content.get_silva_object()
    for marker in event.design.markers:
def remove_markers(content, event):
    target = content
    if IVersion.providedBy(content):
        target = content.get_silva_object()
    for marker in event.design.markers:

src/s/i/silva.core.smi-3.0.3/src/silva/core/smi/content/xml/import.py   silva.core.smi(Download)
            importer.root.get_title_or_id())]
    for reason, content in importer.getProblems():
        if IVersion.providedBy(content):
            content = content.get_silva_object()
        tag = unicode(uuid.uuid1())

src/s/i/silva.core.smi-3.0.3/src/silva/core/smi/content/metadata.py   silva.core.smi(Download)
            source = reference.source
            source_versions = []
            if IVersion.providedBy(source):
                source_versions.append(source.id)
                source = source.get_silva_object()

src/s/i/silva.core.references-3.0.4/src/silva/core/references/widgets/__init__.py   silva.core.references(Download)
def get_lookup_content(content):
    if IVersion.providedBy(content):
        content = content.get_silva_object()
    if (ISilvaObject.providedBy(content) and
        not IContainer.providedBy(content)):

src/s/i/silva.core.editor-3.0.3/src/silva/core/editor/transform/silvaxml/xmlimport.py   silva.core.editor(Download)
            while handler:
                result = handler.result()
                if IVersion.providedBy(result):
                    version = result
                    break

src/s/i/silva.core.conf-3.0.3/src/silva/core/conf/schema.py   silva.core.conf(Download)
    def _validate(self, value):
        super(ID, self)._validate(value)
        if self.context:
            context = self.context
            if IVersion.providedBy(context) or ISilvaObject.providedBy(context):

src/s/i/silva.core.references-3.0.4/src/silva/core/references/service.py   silva.core.references(Download)
    def __init__(self, page, reference, content):
        if IVersion.providedBy(content):
            self.content = content.get_silva_object()
            self.title = u'{} (version {})'.format(
                self.content.get_title_or_id(),

  1 | 2  Next