Back to index

moin  1.9.0~rc2
config.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003     MoinMoin - jabber bot configuration file
00004 
00005     @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
00006     @license: GNU GPL, see COPYING for details.
00007 """
00008 
00009 
00010 class BotConfig:
00011     # Node name (a valid JID) to be used
00012     xmpp_node = u"moinbot@jabber.example2.org/wiki"
00013 
00014     # Server to be used
00015     xmpp_server = u"jabber.example.com"
00016 
00017     # Port to connect to or None, if default
00018     xmpp_port = None
00019 
00020     # Password used to connect to the xmpp server
00021     xmpp_password = u""
00022 
00023     # Status message that the bot should set
00024     xmpp_status = u"Ready to serve!"
00025 
00026     # Set to True if bot should be verbose about actions it
00027     # is performing. Useful for debuging.
00028     verbose = True
00029 
00030     # Interface to listen on for XML RPC traffic
00031     xmlrpc_host = u"localhost"
00032 
00033     # Port to listen on for XML RPC traffic
00034     xmlrpc_port = 8000
00035 
00036     # Url where wiki is located (for reverse XML RPC traffic)
00037     wiki_url = u"http://localhost:8080/"
00038 
00039     # A secret shared with Wiki , must be the same in both
00040     # configs for communication to work.
00041     secret = "use the same string as in secrets setting in wiki config"
00042 
00043 
00044     # Maximum number of items in service discovery cache (XEP-0115)
00045     disco_cache_size = 100
00046 
00047     # Time allowed for a response for disco#info query (in seconds)
00048     disco_answering_timeout = 60