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

All Samples(15)  |  Call(7)  |  Derive(0)  |  Import(8)

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/server/policy.py   vboxweb(Download)
 
from xpcom import xpcom_consts, _xpcom, client, nsError, logger
from xpcom import ServerException, COMException
import xpcom
import xpcom.server
    def get_classID(self):
        if self.classID is None:
            raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED, "Class '%r' has no class ID" % (self.klass,))
        return self.classID
 
                # QI performed by the framework will set things right!
                if delegate_qi is None or not delegate_qi(iid):
                    raise ServerException(nsError.NS_ERROR_NO_INTERFACE)
        # Stuff for the magic interface conversion.
        self._interface_info_ = None
    def set_data(self, val):
        raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED)
    def toString(self):
        return str(self.get_data())
 

src/k/o/komodo-go-HEAD/components/koGoAppInfo.py   komodo-go(Download)
import sys, os, re, string
import os.path
from xpcom import components, ServerException, nsError
 
import process
    def getVersionForBinary(self, golangExe):
        if not os.path.exists(golangExe):
            raise ServerException(nsError.NS_ERROR_FILE_NOT_FOUND)
        argv = [golangExe, "version"]
        # Set GOROOT to point to this instance of go
        else:
            msg = "Can't find a version in `%s -v` output of '%s'/'%s'" % (golangExe, stdout, stderr)
            raise ServerException(nsError.NS_ERROR_UNEXPECTED, msg)
 
class KoGocodeInfoEx(KoAppInfoEx):

src/v/b/vboxweb-HEAD/xpcom/server/factory.py   vboxweb(Download)
    def createInstance(self, outer, iid):
        if outer is not None:
            raise xpcom.ServerException(nsError.NS_ERROR_NO_AGGREGATION)
 
        logger.debug("Python Factory creating %s", self.klass.__name__)

src/v/b/vboxweb-HEAD/xpcom/server/module.py   vboxweb(Download)
 
from xpcom import components
from xpcom import ServerException, Exception
from xpcom import nsError
 
            klass = self.components[clsid]
        except KeyError:
            raise ServerException(nsError.NS_ERROR_FACTORY_NOT_REGISTERED)
 
        # We can ignore the IID - the auto-wrap process will automatically QI us.

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

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

src/k/o/komodo-go-HEAD/components/koGoLanguage.py   komodo-go(Download)
import koprocessutils
import process
from xpcom import components, ServerException
from langinfo_go import GoLangInfo
from koLanguageServiceBase import KoLanguageBase, KoLexerLanguageService, \