1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
======================================
Accessing Option Values In Your Code
======================================
Option values in the default group are referenced as attributes/properties on
the config manager; groups are also attributes on the config manager, with
attributes for each of the options associated with the group:
.. code-block:: python
server.start(app, conf.bind_port, conf.bind_host, conf)
self.connection = kombu.connection.BrokerConnection(
hostname=conf.rabbit.host,
port=conf.rabbit.port,
...)
|