from pokedex.db import tables, markdown
from pokedex.db.multilang import create_translation_table
from pokedex.db import tables, markdown
from pokedex.db.multilang import create_translation_table
id = Column(Integer, primary_key=True, nullable=False)
FooText = create_translation_table('foo_text', Foo,
id = Column(Integer, primary_key=True, nullable=False)
FooText = create_translation_table('foo_text', Foo,
def execute(self, clause, params=None, *args, **kwargs):
if not params:
params = {}
params.setdefault('_default_language', 'en')
def execute(self, clause, params=None, *args, **kwargs):
if not params:
params = {}
params.setdefault('_default_language', 'en')
- return super(DurpSession, self).execute(clause, params, *args, **kwargs)
+ return super(FauxSession, self).execute(clause, params, *args, **kwargs)
# OK, create all the tables and gimme a session
Base.metadata.create_all()
# OK, create all the tables and gimme a session
Base.metadata.create_all()