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))
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))
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')
def upgrade(): """ upgrade the aliases pickle file to to aliases.new json file. """ convertpickle(datadir + os.sep + 'aliases', datadir + os.sep + \ 'aliases.new')
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'greetings', \ datadir + os.sep + 'plugs' + os.sep + 'greeting' + os.sep + 'greetings')
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'shops', datadir + os.sep + 'plugs' + \ os.sep + 'shop' + os.sep + 'shops')
def upgrade(): try: convertpickle(datadir + os.sep + 'remind', datadir + os.sep + 'plugs' + \ os.sep + 'remind' + os.sep + 'remind') except: pass
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'bugtracker', \ datadir + os.sep + 'plugs' + os.sep + 'bugtracker' + os.sep + 'bugtracker')
def upgrade(): convertpickle( datadir + os.sep + "old" + os.sep + "mpd", datadir + os.sep + "plugs" + os.sep + "mpd" + os.sep + "mpd" )
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'event', datadir + os.sep + 'plugs' + \ os.sep + 'event' + os.sep + 'event')
def upgrade(): convertpickle(datadir + os.sep + 'umode', datadir + os.sep + 'plugs' + os.sep + 'umode' + \ os.sep + 'umode')
def upgrade(): convertpickle( datadir + os.sep + "old" + os.sep + "botsnacklist", datadir + os.sep + "plugs" + os.sep + "botsnack" + os.sep + "botsnacklist", )
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'relay', \ datadir + os.sep + 'plugs' + os.sep + 'relay' + os.sep + 'relay')
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'botsnacklist', \ datadir + os.sep + "plugs" + os.sep + "botsnack" + os.sep + 'botsnacklist')
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')
def upgrade(): convertpickle(datadir + os.sep + 'old' + os.sep + 'mpd', \ datadir + os.sep + 'plugs' + os.sep + 'mpd' + os.sep + 'mpd')