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

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

src/p/r/Products.BugzScout-1.0a2/Products/BugzScout/browser.py   Products.BugzScout(Download)
from zope.app.component.hooks import getSite
from plone.registry.interfaces import IRegistry
from Products.BugzScout.interfaces import IRequestExceptionHandler, \
    IBugzScoutReporter
 

src/p/r/Products.BugzScout-1.0a2/Products/BugzScout/scout.py   Products.BugzScout(Download)
from xml.etree.ElementTree import XML
from zope.interface import implements
from Products.BugzScout.interfaces import IBugzScoutReporter
 
 

src/p/r/Products.BugzScout-1.0a2/Products/BugzScout/tests/test_scout.py   Products.BugzScout(Download)
        #: Register a mock bugz reporter.
        mock_reporter = create_mock_reporter(self.error_handler_values)
        from Products.BugzScout.interfaces import IBugzScoutReporter
        globalSiteManager.registerUtility(mock_reporter, IBugzScoutReporter)
        #: Local assignments for easy reference
    def tearDown(self):
        from Products.BugzScout.interfaces import IBugzScoutReporter
        globalSiteManager.registerUtility(provided=IBugzScoutReporter)
        del self.error_handler_values
 

src/p/r/Products.BugzScout-1.0a2/Products/BugzScout/tests/base.py   Products.BugzScout(Download)
        #: Unregister out IBugzScoutReporter so that we don't actually make
        #  external FogBugz requests.
        from Products.BugzScout.interfaces import IBugzScoutReporter
        from zope.component.globalregistry import globalSiteManager
        globalSiteManager.unregisterUtility(provided=IBugzScoutReporter)