# Path: canary/qx_defs.py
# class SqlQuixoteSession (object, Session):
# class SqlTableMap:
# class SqlSessionManager (SessionManager):
# class CanaryPublisher (SessionPublisher):
# class NotLoggedInError (AccessError):
# class MyForm (Form):
#     def __init__ (self, request, id):
#     def __getattr__ (self, att):
#     def add_message (self, msg=''):
#     def has_messages (self):
#     def clear_messages (self):
#     def set_user (self, user):
#     def has_info (self):
#     def is_dirty (self):
#     def _set_access_time (self, resolution):
#     def __init__ (self, context):
#     def get_conn (self):
#     def keys (self):
#     def values (self):
#     def items (self):
#     def get (self, session_id, default=None):
#     def __getitem__ (self, session_id):
#     def has_key (self, session_id):
#     def __setitem__ (self, session_id, session):
#     def __delitem__ (self, session_id):
#     def _save_to_db (self, session):
#     def _create_from_db (self, session_id, user_id, addr, create_time, 
#         access_time, messages, tokens=[]):
#     def _abort_uncommitted (self, session):
#     def __init__ (self, context):
#     def abort_changes (self, session):
#     def commit_changes (self, session):
#     def __init__ (self, *args, **kwargs):
#     def __init__ (self, context, *args, **kwargs):


from optparse import OptionParser
from dulcinea.database import ObjectDatabase, get_transaction
from canary.qx_defs import MyConfig, MyDulcineaUser
import canary 
        import traceback
#!/usr/bin/env python


# Update canary zodb instance old-named user object class.
#
# To include at least the following:
#
# - sentineltestsite.qx_defs.MyDulcineaUser becomes canary.qx_defs.MyDulcineaUser
#
# $Id$




sentineltestsite = canary


if __name__ == '__main__':
    usage = "usage: %prog [options]"
    parser = OptionParser(usage)
    parser.add_option('-d', '--database', dest='database',
        default='file:data/canary_db',
        help='path to database file', metavar='FILE')
    parser.add_option('-c', '--config', dest='config',
        default='conf/canary_config.py', 
        help='path to configuration file')

    (options, args) = parser.parse_args()


# Path: canary/qx_defs.py
# class SqlQuixoteSession (object, Session):
# class SqlTableMap:
# class SqlSessionManager (SessionManager):
# class CanaryPublisher (SessionPublisher):
# class NotLoggedInError (AccessError):
# class MyForm (Form):
#     def __init__ (self, request, id):
#     def __getattr__ (self, att):
#     def add_message (self, msg=''):
#     def has_messages (self):
#     def clear_messages (self):
#     def set_user (self, user):
#     def has_info (self):
#     def is_dirty (self):
#     def _set_access_time (self, resolution):
#     def __init__ (self, context):
#     def get_conn (self):
#     def keys (self):
#     def values (self):
#     def items (self):
#     def get (self, session_id, default=None):
#     def __getitem__ (self, session_id):
#     def has_key (self, session_id):
#     def __setitem__ (self, session_id, session):
#     def __delitem__ (self, session_id):
#     def _save_to_db (self, session):
#     def _create_from_db (self, session_id, user_id, addr, create_time, 
#         access_time, messages, tokens=[]):
#     def _abort_uncommitted (self, session):
#     def __init__ (self, context):
#     def abort_changes (self, session):
#     def commit_changes (self, session):
#     def __init__ (self, *args, **kwargs):
#     def __init__ (self, context, *args, **kwargs):


# Path: bin/scripts/convert-sentineltestsite-users-to-canary.py
from optparse import OptionParser
from dulcinea.database import ObjectDatabase, get_transaction
from canary.qx_defs import MyConfig, MyDulcineaUser
import canary 
        import traceback

#!/usr/bin/env python


# Update canary zodb instance old-named user object class.
#
# To include at least the following:
#
# - sentineltestsite.qx_defs.MyDulcineaUser becomes canary.qx_defs.MyDulcineaUser
#
# $Id$




sentineltestsite = canary


if __name__ == '__main__':
    usage = "usage: %prog [options]"
    parser = OptionParser(usage)
    parser.add_option('-d', '--database', dest='database',
        default='file:data/canary_db',
        help='path to database file', metavar='FILE')
    parser.add_option('-c', '--config', dest='config',
        default='conf/canary_config.py', 
        help='path to configuration file')

    (options, args) = parser.parse_args()


    config = MyConfig()