Document generic variable access syntax.

This commit is contained in:
Valentin Lorentz 2014-01-20 10:36:05 +01:00
parent 2fd3e11376
commit 0ba89a0425

View File

@ -249,6 +249,17 @@ channel)::
self.setRegistryValue('air', value=['foo', 'bar']) self.setRegistryValue('air', value=['foo', 'bar'])
self.setRegistryValue('air', value=['foo', 'bar'], channel=channel) self.setRegistryValue('air', value=['foo', 'bar'], channel=channel)
You can also access other configuration variables (or your own if you want)
via the ``supybot.conf`` module::
conf.supybot.plugins.WorldDom.air()
conf.supybot.plugins.WorldDom.get('air')()
conf.supybot.plugins.WorldDom.air.get('#channel')()
conf.supybot.plugins.WorldDom.air.setValue(['foo'])
conf.supybot.plugins.WorldDom.air.get('#channel').setValue(['foo'])
The Built-in Registry Types The Built-in Registry Types
=========================== ===========================
A rundown of all of the built-in registry types available for use with config A rundown of all of the built-in registry types available for use with config