Subversion Repositories Scribus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12490 malex 1
###
2
# Copyright (c) 2006, Oleksandr Moskalenko
3
# All rights reserved.
4
#
5
#    This program is free software: you can redistribute it and/or modify
6
#    it under the terms of the GNU General Public License as published by
7
#    the Free Software Foundation, either version 3 of the License, or
8
#    (at your option) any later version.
9
#
10
#    This program is distributed in the hope that it will be useful,
11
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
#    GNU General Public License for more details.
14
#
15
#    You should have received a copy of the GNU General Public License
16
#    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
17
 
18
###
19
 
20
import supybot.conf as conf
21
import supybot.registry as registry
22
 
23
def configure(advanced):
24
    # This will be called by supybot to configure this module.  advanced is
25
    # a bool that specifies whether the user identified himself as an advanced
26
    # user or not.  You should effect your configuration by manipulating the
27
    # registry as appropriate.
28
    from supybot.questions import expect, anything, something, yn
29
    Mantis = conf.registerPlugin('Mantis', True)
30
    output('The default Mantis BTS server is bugs.scribus.net.')
31
    if yn('Would you like to specify a different BTS server?'):
32
        server = something('What server?')
33
        conf.supybot.plugins.Mantis.server.set(server)
34
 
35
 
36
Mantis = conf.registerPlugin('Mantis')
37
 
38
conf.registerGlobalValue(Mantis, 'server',
39
    registry.String('bugs.scribus.net', """Determines the hostname for the
40
    Mantis BTS server."""))
41
conf.registerGlobalValue(Mantis, 'titleSnarfer',
42
    registry.Boolean(False, """Determines whether the bot will output the HTML
43
    title of URLs it sees in the channel."""))
44
 
45
 
46
#http://bugs.scribus.net/view.php?id=3509
47
 
48
# This is where your configuration variables (if any) should go.  For example:
49
# conf.registerGlobalValue(Mantis, 'someConfigVariableName',
50
#     registry.Boolean(False, """Help for someConfigVariableName."""))
51
 
52
#conf.registerChannelValue(Mantis, 'unknown',
53
#    Mantis('btsurl', """Determines what URL the bot will prepend to bug numbers."""))
54
 
55
#conf.registerGlobalValue(Mantis, 'server',
56
#    registry.String('dict.org', """Determines what server the bot will
57
#    retrieve definitions from."""))
58
#conf.registerChannelValue(Dict, 'default',
59
#    registry.String('', """Determines the default dictionary the bot will
60
#    ask for definitions in.  If this value is '*' (without the quotes) the bot
61
#    will use all dictionaries to define words."""))
62
 
63
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: