示例#1
0
def upgrade():
    """ upgrade the nickserv data. """

    try:
        convertpickle(datadir + os.sep + 'nickserv', datadir + os.sep + 'plugs' + os.sep + \
'nickserv' + os.sep + 'nickserv')
    except Exception, ex:
        rlog(10, 'nickserv', 'failed to upgrade .. %s' % str(ex))
示例#2
0
def upgrade():

    """ upgrade the nickserv data. """

    try:
        convertpickle(datadir + os.sep + 'nickserv', datadir + os.sep + 'plugs' + os.sep + \
'nickserv' + os.sep + 'nickserv')
    except Exception, ex:
        rlog(10, 'nickserv', 'failed to upgrade .. %s' % str(ex))
示例#3
0
def upgrade():
    rlog(10, 'rss', 'upgrading')
    teller = 0
    oldpickle = gozerbot.compat.rss.Rsswatcher(datadir + os.sep + \
'old' + os.sep + 'rss')
    for name, rssitem in oldpickle.data.iteritems():
        newrssitem = Rssitem(rssitem.name, rssitem.url, rssitem.itemslist, rssitem.watchchannels, \
rssitem.sleeptime, rssitem.running)
        watcher.data[name] = newrssitem
        teller += 1
    watcher.save()
    convertpickle(datadir + os.sep + 'rss.itemslist', datadir + os.sep + 'plugs' + \
os.sep + 'rss' + os.sep + 'rss.itemslist')
    convertpickle(datadir + os.sep + 'rss.markup', datadir + os.sep + 'plugs' + \
os.sep + 'rss' + os.sep + 'rss.markup')
    rlog(10, 'rss', 'upgraded %s items' % str(teller))
示例#4
0
def upgrade():
    rlog(10, 'rss', 'upgrading')
    teller = 0
    oldpickle = gozerbot.compat.rss.Rsswatcher(datadir + os.sep + \
'old' + os.sep + 'rss')
    for name, rssitem in oldpickle.data.iteritems():
        newrssitem = Rssitem(rssitem.name, rssitem.url, rssitem.itemslist, rssitem.watchchannels, \
rssitem.sleeptime, rssitem.running)
        watcher.data[name] = newrssitem
        teller += 1
    watcher.save()
    convertpickle(datadir + os.sep + 'rss.itemslist', datadir + os.sep + 'plugs' + \
os.sep + 'rss' + os.sep + 'rss.itemslist')
    convertpickle(datadir + os.sep + 'rss.markup', datadir + os.sep + 'plugs' + \
os.sep + 'rss' + os.sep + 'rss.markup')
    rlog(10, 'rss', 'upgraded %s items' % str(teller))
示例#5
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'pt-projects', \
datadir + os.sep + 'plugs' + os.sep + 'projecttracker' + os.sep + 'pt-projects')
    convertpickle(datadir + os.sep + 'old' + os.sep + 'pt-contrib', \
datadir + os.sep + 'plugs' + os.sep + 'projecttracker' + os.sep + 'pt-contrib')
示例#6
0
def upgrade():

    """ upgrade the aliases pickle file to to aliases.new json file. """

    convertpickle(datadir + os.sep + 'aliases', datadir + os.sep + \
'aliases.new')
示例#7
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'pt-projects', \
datadir + os.sep + 'plugs' + os.sep + 'projecttracker' + os.sep + 'pt-projects')
    convertpickle(datadir + os.sep + 'old' + os.sep + 'pt-contrib', \
datadir + os.sep + 'plugs' + os.sep + 'projecttracker' + os.sep + 'pt-contrib')
示例#8
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'greetings', \
datadir + os.sep + 'plugs' + os.sep + 'greeting' + os.sep + 'greetings')
示例#9
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'shops',  datadir + os.sep + 'plugs' + \
os.sep + 'shop' + os.sep + 'shops')
示例#10
0
def upgrade():
    try:
        convertpickle(datadir + os.sep + 'remind', datadir + os.sep + 'plugs' + \
os.sep + 'remind' + os.sep + 'remind')
    except:
        pass
示例#11
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'bugtracker', \
datadir + os.sep + 'plugs' + os.sep + 'bugtracker' + os.sep + 'bugtracker')
示例#12
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'shops',  datadir + os.sep + 'plugs' + \
os.sep + 'shop' + os.sep + 'shops')
示例#13
0
def upgrade():
    convertpickle(
        datadir + os.sep + "old" + os.sep + "mpd", datadir + os.sep + "plugs" + os.sep + "mpd" + os.sep + "mpd"
    )
示例#14
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'event', datadir + os.sep + 'plugs' + \
os.sep + 'event' + os.sep + 'event')
示例#15
0
def upgrade():
    convertpickle(datadir + os.sep + 'umode', datadir + os.sep + 'plugs' + os.sep + 'umode' + \
os.sep + 'umode')
示例#16
0
def upgrade():
    convertpickle(
        datadir + os.sep + "old" + os.sep + "botsnacklist",
        datadir + os.sep + "plugs" + os.sep + "botsnack" + os.sep + "botsnacklist",
    )
示例#17
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'bugtracker', \
datadir + os.sep + 'plugs' + os.sep + 'bugtracker' + os.sep + 'bugtracker')
示例#18
0
def upgrade():
    try:
        convertpickle(datadir + os.sep + 'remind', datadir + os.sep + 'plugs' + \
os.sep + 'remind' + os.sep + 'remind')
    except:
        pass
示例#19
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'event', datadir + os.sep + 'plugs' + \
os.sep + 'event' + os.sep + 'event')
示例#20
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'relay', \
datadir + os.sep + 'plugs' + os.sep + 'relay' + os.sep + 'relay')
示例#21
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'botsnacklist', \
datadir + os.sep  + "plugs" + os.sep + "botsnack" + os.sep + 'botsnacklist')
示例#22
0
def upgrade():
    from gozerbot.utils.generic import convertpickle
    convertpickle(datadir + os.sep + 'old' + os.sep + 'twitter', \
datadir + os.sep + 'plugs' + os.sep + 'twitter' + os.sep + 'twitter')
示例#23
0
def upgrade():
    convertpickle(datadir + os.sep + 'old' + os.sep + 'mpd', \
datadir + os.sep + 'plugs' + os.sep + 'mpd' + os.sep + 'mpd')