Class e.p.a.a.AvahiResourceProvider(ResourceProvider):

Part of elisa.plugins.avahi.avahi_resource_provider View In Hierarchy

No class docstring
Line # Kind Name Docs
72 Method __init__ Undocumented
87 Method initialize Initialize the component.
110 Method get Request network informations. Using this method you can browse the
148 Method _new_server_type Undocumented
164 Method _new_service Undocumented
209 Method _remove_service Undocumented
222 Method _browse_domain Undocumented

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
116 Method put Put one resource into another. Both resources are identified with URIs.
138 Method delete Delete a Resource represented by a URI.

Inherited from Component (via ResourceProvider):

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.
142 Method clean Clean the component.
def __init__(self):
Undocumented
def initialize(self):
Initialize the component.

This method is called by Component.create to finish the initialization of a component.

Returnsa deferred called when a component is fully initialized (type: twisted.internet.defer.Deferred )
def get(self, uri, context_model):
Request network informations. Using this method you can browse the networks your system is in using Avahi. The URI you probably want to start with is the network:// what returns you a elisa.plugins.avahi.models.NetworkOverViewModel. This contains a list of domains found on the network. You now can request one of the domains putting the name of it as the host: network://<domain_name>. For e.g. network://mylocaldomain. You will receive a elisa.plugins.avahi.models.DomainModel containing elisa.plugins.base.models.network.NetworkServiceModels.

These Service models are added and removed on the fly if differences are discovered. This is possible because you always receive the same DomainModel instance for each request. The context_model is not taken into account at all.

A shortcut you might be interested in is the lan:// uri. This is the same as a network://local and that is the only domain that is always automatically discovered (as it is a bit special).

If you request for any other kind of domain, you might get a failure wiht DomainNotFound.

def _new_server_type(self, interface, protocol, stype, domain, flags):
Undocumented
def _new_service(self, interface, protocol, name, stype, domain, *flags):
Undocumented
def _remove_service(self, interface, protocol, name, stype, domain, flags):
Undocumented
def _browse_domain(self, interface, protocol, domain, *flags):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.