[hg] galaxy 2461: Bug fix for my last commit.
details: http://www.bx.psu.edu/hg/galaxy/rev/d9e58acd4dca changeset: 2461:d9e58acd4dca user: Greg Von Kuster <greg@bx.psu.edu> date: Mon Jun 29 16:54:41 2009 -0400 description: Bug fix for my last commit. 1 file(s) affected in this change: lib/galaxy/model/migrate/versions/0007_sharing_histories.py diffs (24 lines): diff -r 533ae45c4440 -r d9e58acd4dca lib/galaxy/model/migrate/versions/0007_sharing_histories.py --- a/lib/galaxy/model/migrate/versions/0007_sharing_histories.py Mon Jun 29 16:30:16 2009 -0400 +++ b/lib/galaxy/model/migrate/versions/0007_sharing_histories.py Mon Jun 29 16:54:41 2009 -0400 @@ -1,11 +1,15 @@ from sqlalchemy import * +from sqlalchemy.orm import * from migrate import * +import sys, logging -import datetime -now = datetime.datetime.utcnow - -# Need our custom types, but don't import anything else from model -from galaxy.model.custom_types import * +log = logging.getLogger( __name__ ) +log.setLevel(logging.DEBUG) +handler = logging.StreamHandler( sys.stdout ) +format = "%(name)s %(levelname)s %(asctime)s %(message)s" +formatter = logging.Formatter( format ) +handler.setFormatter( formatter ) +log.addHandler( handler ) metadata = MetaData( migrate_engine )
participants (1)
-
Greg Von Kuster