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

All Samples(20)  |  Call(12)  |  Derive(0)  |  Import(8)
Marker Interface for the Config adapter.
See persistence.py

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/views.py   ftw.publisher.sender(Download)
from ftw.publisher.sender.events import AfterPushEvent, QueueExecutedEvent
from ftw.publisher.sender.events import BeforeQueueExecutionEvent
from ftw.publisher.sender.interfaces import IPathBlacklist, IConfig, IQueue
from ftw.publisher.sender.utils import add_transaction_aware_status_message
from ftw.publisher.sender.utils import sendJsonToRealm
        self.error_logger = getErrorLogger()
        portal = self.context.portal_url.getPortalObject()
        self.config = IConfig(portal)
        self.queue = IQueue(portal)
        # remove job from queue
 
        # get config and queue
        self.config = IConfig(self.context)
        portal = self.context.portal_url.getPortalObject()
        self.queue = IQueue(portal)

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/configlet.py   ftw.publisher.sender(Download)
from ftw.publisher.sender.browser.interfaces import IEditRealmSchema
from ftw.publisher.sender.browser.interfaces import IRealmSchema
from ftw.publisher.sender.interfaces import IConfig
from ftw.publisher.sender.interfaces import IQueue
from ftw.publisher.sender.persistence import Realm
        """
        data, errors = self.extractData()
        config = IConfig(self.context)
        if len(errors)==0:
            assert config.is_update_realms_possible()
    def handleSave(self, action):
        """
        """
        data, errors = self.extractData()
        config = IConfig(self.context)
    def __init__(self, *args, **kwargs):
        super(PublisherConfigletView, self).__init__(*args, **kwargs)
        self.config = IConfig(self.context)
        self.queue = IQueue(self.context)
 

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/blacklist.py   ftw.publisher.sender(Download)
from Products.Five import BrowserView
from Products.statusmessages.interfaces import IStatusMessage
from ftw.publisher.sender import message_factory as _
from ftw.publisher.sender.browser.interfaces import IBlacklistPathSchema
from ftw.publisher.sender.interfaces import IConfig
    def handleAdd(self, action):
        portal = self.context.portal_url.getPortalObject()
        config = IConfig(portal)
        data, errors = self.extractData()
        if not len(errors):
    def __init__(self, *args, **kwargs):
        super(PathBlacklistView, self).__init__(*args, **kwargs)
        self.portal = self.context.portal_url.getPortalObject()
        self.config = IConfig(self.portal)
 

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/adapters.py   ftw.publisher.sender(Download)
from AccessControl.SecurityInfo import ClassSecurityInformation
from Products.ZCatalog import CatalogBrains
from ftw.publisher.sender.interfaces import IPathBlacklist, IConfig
from zope.interface import implements
 
 
        # check the path
        config = IConfig(self.portal)
 
        for blocked_path in config.getPathBlacklist():

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/extractor.py   ftw.publisher.sender(Download)
from ftw.publisher.core.interfaces import IDataCollector
from ftw.publisher.core.utils import decode_for_json
from ftw.publisher.sender.interfaces import IConfig
from zExceptions import NotFound
from zope.component import getAdapters
        # remove ignored fields
        portal = self.object.portal_url.getPortalObject()
        config = IConfig(portal)
        ignore = config.get_ignored_fields()
        for ptype, fields in ignore.items():

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/persistence.py   ftw.publisher.sender(Download)
from ftw.publisher.core import states
from ftw.publisher.sender import extractor
from ftw.publisher.sender.interfaces import IConfig
from ftw.publisher.sender.interfaces import IOverriddenRealmRegistry
from ftw.publisher.sender.interfaces import IQueue

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/tests/test_meta_zcml.py   ftw.publisher.sender(Download)
from Products.CMFPlone.interfaces import IPloneSiteRoot
from ftw.publisher.sender.interfaces import IConfig
from ftw.publisher.sender.interfaces import IOverriddenRealmRegistry
from ftw.publisher.sender.interfaces import IRealm
from ftw.publisher.sender.persistence import Realm
        self.replay()
 
        config = IConfig(portal)
        self.assertTrue(config)
        self.assertTrue(config.is_update_realms_possible())
        self.replay()
 
        config = IConfig(portal)
        self.assertTrue(config)
        self.assertFalse(config.is_update_realms_possible())

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/tests/test_extractor.py   ftw.publisher.sender(Download)
 
        # now ignore some fields
        from ftw.publisher.sender.interfaces import IConfig
        config = IConfig(self.portal)
        config.set_ignored_fields({'Document': ['description',