parameters: ( self, service_types = {} )
docstring: service_types - dictionary of services => handlers
docstring_summary: service_types - dictionary of services => handlers
docstring_tokens: service_types - dictionary of services = > handlers
function: def __init__( self, service_types = {} ):
          """
          service_types - dictionary of services => handlers
          """
          self._stop = False
          self.loop = DBusGMainLoop()
          self.bus = dbus.SystemBus( mainloop=self.loop )
          self.server = dbus.Interface( self.bus.get_object( avahi.DBUS_NAME, '/' ),
                                   'org.freedesktop.Avahi.Server')
          self.handlers = {}
  
          for type in service_types.keys():
              self.add_service( type, service_types[ type ] )
function_tokens: def __init__ ( self , service_types = { } ) : self . _stop = False self . loop = DBusGMainLoop ( ) self . bus = dbus . SystemBus ( mainloop = self . loop ) self . server = dbus . Interface ( self . bus . get_object ( avahi . DBUS_NAME , '/' ) , 'org.freedesktop.Avahi.Server' ) self . handlers = { } for type in service_types . keys ( ) : self . add_service ( type , service_types [ type ] )