Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/content/salesforcepfgadapter.py   Products.salesforcepfgadapter(Download)
logger = logging.getLogger("PloneFormGen")
 
validation.register(validators.CircularDependencyValidator('CircularDependencyValidator'))
 
schema = FormAdapterSchema.copy() + Schema((
            # as protection for adapters that may have been 
            # configured outside the context of Archetypes validation
            validator = validators.CircularDependencyValidator("validator")
            adapter = getattr(formFolder, id)
            if validator(adapter.getDependencyMap(), instance=adapter) is not True:

src/p/r/Products.salesforcepfgadapter-1.9.1/Products/salesforcepfgadapter/tests/testValidators.py   Products.salesforcepfgadapter(Download)
import os, sys
from unittest import TestCase
from Products.CMFCore.utils import getToolByName
from Products.salesforcebaseconnector.tests import sfconfig   # get login/pw
from Products.salesforcepfgadapter.validators import CircularDependencyValidator
    def afterSetUp(self):
        super(TestCircularAdapters, self).afterSetUp()
        self.validator = CircularDependencyValidator('validator')
        self.folder.invokeFactory('FormFolder', 'ff1')
        self.ff1 = getattr(self.folder, 'ff1')