#!/usr/bin/python from sqlobject import * from database import conn class User(SQLObject): _connection = conn username = StringCol(length=50, unique=True) jid = StringCol(length=255) User.createTable(ifNotExists=True)