from pkg_resources import resource_filename
-from pylons import c, session
+from pylons import session, tmpl_context as c
from spline.lib.plugin import PluginBase
from spline.lib.plugin import PluginBase, PluginLink, Priority
import pokedex.formulae
from pokedex.struct import SaveFilePokemon
from pylons import config, request, response, session, tmpl_context as c, url
-from pylons.controllers.util import abort, redirect_to
+from pylons.controllers.util import abort, redirect
from sqlalchemy import and_, or_, not_
from sqlalchemy.orm import aliased, contains_eager, eagerload, eagerload_all, join
from sqlalchemy.orm.exc import NoResultFound
import pokedex.db.tables as tables
from pokedex.struct import SaveFilePokemon
from pylons import config, request, response, session, tmpl_context as c, url
-from pylons.controllers.util import abort, redirect_to
+from pylons.controllers.util import abort, redirect
from sqlalchemy.orm.exc import NoResultFound
from spline.model import meta
from spline.lib.base import BaseController, render
from spline.lib import helpers as h
from splinext.gts import model as gts_model
-from splinext.pokedex.db import pokedex_session
+import splinext.pokedex.db as db
log = logging.getLogger(__name__)
c.savefiles = []
for gts_pokemon in gts_pokemons:
savefile = SaveFilePokemon(gts_pokemon.pokemon_blob)
- savefile.use_database_session(pokedex_session)
+ savefile.use_database_session(db.pokedex_session)
c.savefiles.append(savefile)
return render('/gts/list.mako')