Package aldrin :: Module extman :: Class ExtensionHost
[show private | hide private]
[frames | no frames]

Type ExtensionHost

object --+        
         |        
 Interface --+    
             |    
IExtensionHost --+
                 |
                ExtensionHost


Acts as an agent between extension and manager and stores metainformation. An extension host object will be passed to extension classes on initialization, which can be queried for subsequent services.
Method Summary
  __init__(self, basepath, element)
" Loads metadata for this extension.
{IExtensionManager} get_extension_manager(self)
Returns the extension manager object.
  realize(self)
Instantiates the extension.
str resolve_path(self, path)
Resolves a relative path to an absolute one, where the location of the manifest.xml is regarded as the base directory.
    Inherited from Interface
  create_protected_proxy(self, ifaces)
Returns a protected proxy object that only exports methods defined in interfaces.
  get_interfaces(self)
Returns all supported interfaces.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, basepath, element)
(Constructor)

" Loads metadata for this extension.
Parameters:
basepath - Base directory of the extension.
           (type=str)
element - XML DOM element "extension"
           (type=xml.Element)
Overrides:
aldrin.interface.Interface.__init__

get_extension_manager(self)

Returns the extension manager object.
Returns:
Extension manager object.
           (type={IExtensionManager})
Overrides:
aldrin.interface.IExtensionHost.get_extension_manager

realize(self)

Instantiates the extension.

resolve_path(self, path)

Resolves a relative path to an absolute one, where the location of the manifest.xml is regarded as the base directory.
Parameters:
path - Relative path to file or dir.
           (type=str)
Returns:
Absolute path to file or dir.
           (type=str)
Overrides:
aldrin.interface.IExtensionHost.resolve_path

Generated by Epydoc 2.1 on Sun Feb 4 18:01:15 2007 http://epydoc.sf.net