Back to index

lightning-sunbird  0.9+nobinonly
Namespaces | Functions | Variables
xpcom.server Namespace Reference

Namespaces

namespace  enumerator
namespace  factory
namespace  loader
namespace  module
namespace  policy

Functions

def WrapObject
def UnwrapObject
def NS_GetModule
def _shutdown

Variables

 tracer = tracer_unwrapNone

Function Documentation

def xpcom.server._shutdown ( ) [private]

Definition at line 86 of file __init__.py.

00086 
00087 def _shutdown():
00088     from policy import _shutdown
00089     _shutdown()

Here is the caller graph for this function:

def xpcom.server.NS_GetModule (   serviceManager,
  nsIFile 
)

Definition at line 81 of file __init__.py.

00081 
00082 def NS_GetModule( serviceManager, nsIFile ):
00083     import loader
00084     iid = _xpcom.IID_nsIModule
00085     return WrapObject(loader.MakePythonComponentLoaderModule(serviceManager, nsIFile), iid, bWrapClient = 0)

Here is the call graph for this function:

Definition at line 67 of file __init__.py.

00067 
00068 def UnwrapObject(ob):
00069     if ob is None:
00070         return None
00071     ret = _xpcom.UnwrapObject(ob)._obj_
00072     if tracer_unwrap is not None:
00073         ret = tracer_unwrap(ret)
00074     return ret
00075 
00076 # Create the main module for the Python loader.
00077 # This is a once only init process, and the returned object
00078 # if used to load all other Python components.
00079 
00080 # This means that we keep all factories, modules etc implemented in
# Python!

Here is the caller graph for this function:

def xpcom.server.WrapObject (   ob,
  iid,
  policy = None,
  bWrapClient = 1 
)
Called by the framework to attempt to wrap
an object in a policy.
If iid is None, it will use the first interface the object indicates it supports.

Definition at line 55 of file __init__.py.

00055 
00056 def WrapObject(ob, iid, policy = None, bWrapClient = 1):
00057     """Called by the framework to attempt to wrap
00058     an object in a policy.
00059     If iid is None, it will use the first interface the object indicates it supports.
00060     """
00061     if policy is None:
00062         policy = DefaultPolicy
00063     if tracer is not None:
00064         ob = tracer(ob)
00065     return _xpcom.WrapObject(policy( ob, iid ), iid, bWrapClient)
00066 
# Unwrap a Python object back into the Python object

Here is the caller graph for this function:


Variable Documentation

xpcom.server.tracer = tracer_unwrapNone

Definition at line 52 of file __init__.py.