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

All Samples(13)  |  Call(2)  |  Derive(0)  |  Import(11)

src/d/j/django-navbar-0.3.0/examples/dbgp/server.py   django-navbar(Download)
#XXX Try to avoid dependence on PyXPCOM infrastructure in this file.
try:
    from xpcom import COMException, ServerException
except ImportError:
    COMException = ServerException = None

src/v/b/vboxweb-HEAD/xpcom/components.py   vboxweb(Download)
            # Present a better exception message, and give a more useful error code.
            import nsError
            raise xpcom.COMException(nsError.NS_ERROR_NO_INTERFACE, "The interface '%s' does not exist" % (name,))
        return _Interface(item.GetName(), item.GetIID())
 
            # Handle "no such component" in a cleaner way for the user.
            if details.errno == nsError.NS_ERROR_FACTORY_NOT_REGISTERED:
                raise xpcom.COMException(details.errno, "No such component '%s'" % (self.contractid,))
            raise # Any other exception reraise.
    def getService(self, iid = None):

src/v/b/vboxweb-HEAD/xpcom/server/policy.py   vboxweb(Download)
 
from xpcom import xpcom_consts, _xpcom, client, nsError, logger
from xpcom import ServerException, COMException
import xpcom
import xpcom.server

src/v/b/vboxweb-HEAD/xpcom/client/__init__.py   vboxweb(Download)
import new
import logging
from xpcom import xpt, COMException, nsError, logger
 
# Suck in stuff from _xpcom we use regularly to prevent a module lookup

src/s/u/Sublime-Text-2-Plugins---Settings-HEAD/plugins/SublimeCodeIntel/libs/codeintel2/accessor.py   Sublime-Text-2-Plugins---Settings(Download)
    from xpcom.client import WeakReference
    from xpcom._xpcom import getProxyForObject, PROXY_SYNC, PROXY_ALWAYS
    from xpcom import COMException
 
 

src/s/u/SublimeText2-Config-HEAD/Packages/SublimeCodeIntel/libs/codeintel2/accessor.py   SublimeText2-Config(Download)
    from xpcom.client import WeakReference
    from xpcom._xpcom import getProxyForObject, PROXY_SYNC, PROXY_ALWAYS
    from xpcom import COMException
 
 

src/s/u/sublime-text-2-packages-HEAD/SublimeCodeIntel/libs/codeintel2/accessor.py   sublime-text-2-packages(Download)
    from xpcom.client import WeakReference
    from xpcom._xpcom import getProxyForObject, PROXY_SYNC, PROXY_ALWAYS
    from xpcom import COMException
 
 

src/f/e/FED-Sublime-Settings-HEAD/SublimeCodeIntel/libs/codeintel2/accessor.py   FED-Sublime-Settings(Download)
    from xpcom import components
    from xpcom.client import WeakReference
    from xpcom import COMException
 
 

src/k/o/komodo-python-dbgp-8.0.2/dbgp/server.py   komodo-python-dbgp(Download)
#XXX Try to avoid dependence on PyXPCOM infrastructure in this file.
try:
    from xpcom import COMException, ServerException
except ImportError:
    COMException = ServerException = None

src/d/b/dbgp-1.1/dbgp/server.py   dbgp(Download)
#XXX Try to avoid dependence on PyXPCOM infrastructure in this file.
try:
    from xpcom import COMException, ServerException
except ImportError:
    COMException = ServerException = None

  1 | 2  Next