Changeset 3934

Show
Ignore:
Timestamp:
07/02/08 06:53:39 (5 months ago)
Author:
vnaum
Message:

Debug code removed
Version is now "0.0.2"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracunreadplugin/0.10/setup.py

    r3534 r3934  
    88      description='Read/Unread comment tracker for Trac', 
    99      keywords='last unread forum', 
    10       version='0.0.1', 
     10      version='0.0.2', 
    1111      author='Vladislav Naumov', 
    1212      author_email='vnaum@vnaum.com', 
  • tracunreadplugin/0.10/trac_unread/env_setup.py

    r3933 r3934  
    8888            db.commit() 
    8989 
    90 if __name__ == '__main__': 
    91  
    92     from trac.core import ComponentManager 
    93     import trac.db.mysql_backend 
    94     import trac.db.sqlite_backend 
    95     import trac.db.postgres_backend 
    96      
    97     unread_table = Table('trac_unread', key=('type', 'id', 'username'))[ 
    98         Column('username'), 
    99         Column('last_read_on', type='int'), 
    100         Column('type'), 
    101         Column('id'), 
    102         Index(['type']), 
    103         Index(['id']), 
    104         Index(['username'])] 
    105     cman = ComponentManager() 
    106     c_mysql  = trac.db.mysql_backend.MySQLConnector(cman); 
    107     c_psql   = trac.db.postgres_backend.PostgreSQLConnector(cman); 
    108     c_sqlite = trac.db.sqlite_backend.SQLiteConnector(cman); 
    109      
    110     for stmt in c_mysql.to_sql(unread_table): 
    111       print "mysql: ", stmt 
    112      
    113     for stmt in c_psql.to_sql(unread_table): 
    114       print "psql: ", stmt 
    115      
    116     for stmt in c_sqlite.to_sql(unread_table): 
    117       print "sqlite: ", stmt