coherence.backends.buzztard_control (module)¶
-
class
BzClient
(*args, **kwargs)[source]¶ Bases:
twisted.protocols.basic.LineReceiver
,eventdispatcher.eventdispatcher.EventDispatcher
,coherence.log.LogAble
-
Changed in version 0.9.0:
Migrated from louie/dispatcher to EventDispatcher
The emitted events changed:
Buzztard.Response.flush => response_flush
Buzztard.Response.event => response_event
Buzztard.Response.volume => response_volume
Buzztard.Response.mute=> response_mute
Buzztard.Response.repeat => response_repeat
Buzztard.Response.browse => response_browse
-
logCategory
= 'buzztard_client'¶
-
factory
= None¶
-
connectionMade
()[source]¶ Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
-
class
BzFactory
(backend)[source]¶ Bases:
twisted.internet.protocol.ClientFactory
,coherence.log.LogAble
Changed in version 0.9.0: Migrated from louie/dispatcher to EventDispatcher
-
logCategory
= 'buzztard_factory'¶
-
clientConnectionFailed
(connector, reason)[source]¶ Called when a connection has failed to connect.
It may be useful to call connector.connect() - this will reconnect.
@type reason: L{twisted.python.failure.Failure}
-
clientConnectionLost
(connector, reason)[source]¶ Called when an established connection is lost.
It may be useful to call connector.connect() - this will reconnect.
@type reason: L{twisted.python.failure.Failure}
-
startFactory
()[source]¶ This will be called before I begin listening on a Port or Connector.
It will only be called once, even if the factory is connected to multiple ports.
This can be used to perform ‘unserialization’ tasks that are best put off until things are actually running, such as connecting to a database, opening files, etcetera.
-
-
class
BzConnection
(backend=None, host='localhost', port=7654)[source]¶ Bases:
coherence.log.LogAble
A singleton class
Changed in version 0.9.0: Migrated from louie/dispatcher to EventDispatcher
-
logCategory
= 'buzztard_connection'¶
-
connection
= None¶
-
-
class
BuzztardItem
(id, name, parent, mimetype, urlbase, host, update=False)[source]¶ Bases:
coherence.log.LogAble
-
logCategory
= 'buzztard_item'¶
-
-
class
BuzztardStore
(server, **kwargs)[source]¶ Bases:
coherence.backend.Backend
-
Changed in version 0.9.0:
Migrated from louie/dispatcher to EventDispatcher
Introduced
Backend
’s inheritance
-
logCategory
= 'buzztard_store'¶
-
implements
= ['MediaServer']¶
-
class
BuzztardPlayer
(device, **kwargs)[source]¶ Bases:
coherence.log.LogAble
Changed in version 0.9.0: Migrated from louie/dispatcher to EventDispatcher
-
logCategory
= 'buzztard_player'¶
-
implements
= ['MediaRenderer']¶
-
vendor_value_defaults
= {'RenderingControl': {'A_ARG_TYPE_Channel': 'Master'}}¶
-
vendor_range_defaults
= {'RenderingControl': {'Volume': {'maximum': 100}}}¶
-