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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/browser/watcher.py   ftw.bridge.client(Download)
from ftw.bridge.client.interfaces import IBridgeRequest
from ftw.bridge.client.interfaces import MAINTENANCE_ERROR_MESSAGE
from ftw.bridge.client.portlets.watcher import Assignment
from ftw.bridge.client.utils import get_brain_url
from ftw.bridge.client.utils import get_object_url
    def _add_portlet(self, mapping, data):
        portlet_id = self._generate_portlet_id(mapping)
        mapping[portlet_id] = Assignment(**data)
        mapping[portlet_id].__name__ = portlet_id
        return mapping[portlet_id]

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_watcher_portlet.py   ftw.bridge.client(Download)
        view = self.providing_stub(IBrowserView)
        manager = self.providing_stub(IPortletManager)
        assignment = watcher.Assignment('client-one', '@@watch')
 
        plone_portal_state = self.stub()