# Path: database.py
# class DB(object):
# class ImposterBase(object):
#     def __init__(self, dbstring):
#     def get_session(self):
#     def to_dict(obj):
#     def get_public_dict(obj):
# 
# Path: config.py
# TABLEPREFIX = 'imposter_'


from sqlalchemy import Table, Column, Integer, String, Text, DateTime, ForeignKey
from sqlalchemy.orm import mapper, relation, relationship, backref
from database import Base, ImposterBase
from time import strftime
from config import TABLEPREFIX
from flaskjk import markup_to_html, multi_replace
    __public_columns__ = [ value, count ]

    def __init__(self, value):
        self.value = value

    def __unicode__(self):
        return self.value

    def __repr__(self):
        return '<Tag %r>' % self.value

class User(Base,ImposterBase):
    __tablename__ = tn('users')

    id = Column(Integer, primary_key=True)
    username = Column(String(64), nullable=False, unique=True)
    password = Column(String(256), nullable=False)

    __public_columns__ = [ username ]

    def __init__(self, username, password):
        self.username = username
        self.password = password

    def __unicode__(self):
        return self.username

    def __repr__(self):
        return '<User %r>' % self.username


# Path: database.py
# class DB(object):
# class ImposterBase(object):
#     def __init__(self, dbstring):
#     def get_session(self):
#     def to_dict(obj):
#     def get_public_dict(obj):
# 
# Path: config.py
# TABLEPREFIX = 'imposter_'


# Path: models.py
from sqlalchemy import Table, Column, Integer, String, Text, DateTime, ForeignKey
from sqlalchemy.orm import mapper, relation, relationship, backref
from database import Base, ImposterBase
from time import strftime
from config import TABLEPREFIX
from flaskjk import markup_to_html, multi_replace

    __public_columns__ = [ value, count ]

    def __init__(self, value):
        self.value = value

    def __unicode__(self):
        return self.value

    def __repr__(self):
        return '<Tag %r>' % self.value

class User(Base,ImposterBase):
    __tablename__ = tn('users')

    id = Column(Integer, primary_key=True)
    username = Column(String(64), nullable=False, unique=True)
    password = Column(String(256), nullable=False)

    __public_columns__ = [ username ]

    def __init__(self, username, password):
        self.username = username
        self.password = password

    def __unicode__(self):
        return self.username

    def __repr__(self):
        return '<User %r>' % self.username


class Post(Base,ImposterBase):