good blog

[code] class User:

def __init__(self, default_config):
    self.collection = default_config['USERS_COLLECTION']
    self.username = None
    self.email = None
    self.session_key = 'user'
    self.response = {'error': None, 'data': None}
    self.debug_mode = default_config['DEBUG']

[/code]

tags: test