%PDF- %PDF-
| Direktori : /proc/self/root/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/ |
| Current File : //proc/self/root/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyc |
�
�SK\c @ su d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l Z d d l Z d d d � � YZ d S(
i����( t
components( t ServerExceptiont Exception( t nsErrori ( t factoryNt Modulec B sA e Z e j j Z d � Z d � Z d � Z d � Z d � Z
RS( c C sD i } | _ x$ | D] } | | t j | j � <q Wt j | _ d S( N( R t IDt _reg_clsid_R t Factoryt klassFactory( t selft compst ct klass( ( sD /usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt __init__0 s
c C sA y | j | } Wn t k
r3 t t j � � n X| j | � S( N( R t KeyErrorR R t NS_ERROR_FACTORY_NOT_REGISTEREDR ( R
t compMgrt clsidt iidR
( ( sD /usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt getClassObject7 s
c
C s� t j j | j � } x� t | j j � � D]� } | j } d | | f GHt | d | � } | j t j j
� } | j | j | | | | | � t | d d � d } | d k r+ | | | | | | � q+ q+ Wd S( Ns Registering '%s' (%s)t
_reg_desc_t _reg_registrar_i ( NN( t ost patht basenamet listR t valuest _reg_contractid_t getattrt queryInterfacet
interfacest nsIComponentRegistrart registerFactoryLocationR t None(
R
R t locationt loaderStrt
componentTypet fnameR
t reg_contractidt reg_desct
extra_func( ( sD /usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt registerSelfA s c C s� x� t | j j � � D]� } d } y | j | j | � Wn t k
rR d } n Xt | d d � d } | d k r� y | | | | | � Wq� t k
r� d } q� Xn | r� d | j f GHq d | j d f GHq Wd S( Ni i R s Successfully unregistereds Unregistration ofs. failed. (probably just not already registered)( NN( R R R t unregisterComponentSpecR R R R"