Subversion Repositories Scribus


Rev 12492 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# Copyright (c) 2007, Oleksandr Moskalenko
# All rights reserved.
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <>.

import supybot.conf as conf
import supybot.registry as registry
import supybot.callbacks as callbacks

def configure(advanced):
    # This will be called by supybot to configure this module.  advanced is
    # a bool that specifies whether the user identified himself as an advanced
    # user or not.  You should effect your configuration by manipulating the
    # registry as appropriate.
    from supybot.questions import expect, anything, something, yn
    conf.registerPlugin('Svnwatch', True)
    output('The default SVN xml URI is')
    if yn('Would you like to specify a SVN xml URI?'):
        xmluri = something('SVN XML URI?')

#class PostChannels(registry.SpaceSeparated):
#    List = callbacks.CanonicalNameSet

Svnwatch = conf.registerPlugin('Svnwatch')
# This is where your configuration variables (if any) should go.  For example:
# conf.registerGlobalValue(Svnwatch, 'someConfigVariableName',
# registry.Boolean(False, """Help for someConfigVariableName."""))
conf.registerGlobalValue(Svnwatch, 'xmluri',
        """The uri for the exported SVN XML source."""))
conf.registerGlobalValue(Svnwatch, 'fetchPeriod',
    registry.PositiveInteger(60, """Indicates how many seconds the
        bot will wait between retrieving new svn commit
conf.registerGlobalValue(Svnwatch, 'lastRevision',
    registry.PositiveInteger(1000, """Indicates the last revision published in
        the channels."""
conf.registerGlobalValue(Svnwatch, 'postFrequency', registry.PositiveInteger(5,
    """Indicates how many seconds the bot will wait between posting svn commit
        information messages."""
    'channels', conf.SpaceSeparatedSetOfChannels([], """Determines
        which channels the bot will post SVN commit information to."""

# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: