mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2025-01-13 14:12:33 +01:00
Document generic variable access syntax.
This commit is contained in:
parent
2fd3e11376
commit
0ba89a0425
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user