%PDF-
%PDF-
Mini Shell
Mini Shell
�
�SK\c@suddlmZddlmZmZddlmZddlmZddlZddlZdd d��YZ dS(
i����(t
components(tServerExceptiont Exception(tnsErrori(tfactoryNtModulecBsAeZejjZd�Zd�Zd�Zd�Z d�Z
RS(cCsDi}|_x$|D]}||tj|j�<qWtj|_dS(N(RtIDt_reg_clsid_RtFactorytklassFactory(tselftcompstctklass((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt__init__0s
cCsAy|j|}Wn tk
r3ttj��nX|j|�S(N(RtKeyErrorRRtNS_ERROR_FACTORY_NOT_REGISTEREDR (R
tcompMgrtclsidtiidR
((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pytgetClassObject7s
c
Cs�tjj|j�}x�t|jj��D]�}|j}d||fGHt|d|�}|jtj j
�}|j|j|||||�t|dd�d} | dk r+| |||||�q+q+WdS(NsRegistering '%s' (%s)t
_reg_desc_t_reg_registrar_i(NN(tostpathtbasenametlistRtvaluest_reg_contractid_tgetattrtqueryInterfacet
interfacestnsIComponentRegistrartregisterFactoryLocationRtNone(
R
Rtlocationt loaderStrt
componentTypetfnameR
treg_contractidtreg_desct
extra_func((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pytregisterSelfAs cCs�x�t|jj��D]�}d}y|j|j|�Wntk
rRd}nXt|dd�d}|dk r�y|||||�Wq�tk
r�d}q�Xn|r�d|jfGHqd|jdfGHqWdS(NiiRsSuccessfully unregisteredsUnregistration ofs.failed. (probably just not already registered)(NN( RRRtunregisterComponentSpecRRRR"t__name__(R
RR#R$R
tokR)((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pytunregisterSelfUs
cCsdS(Ni((R
R((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt canUnloadis(R,t
__module__RRt nsIModulet_com_interfaces_RRR*R.R/(((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyR.s
((
txpcomRRRRtRttypesRR(((sD/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/module.pyt<module>%s
Zerion Mini Shell 1.0