Changeset 3446
- Timestamp:
- 09/02/07 14:35:08 (1 year ago)
- Files:
-
- branches/1.0/CHANGELOG.txt (modified) (1 diff)
- branches/1.0/turbogears/command/base.py (modified) (2 diffs)
- branches/1.0/turbogears/command/sacommand.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/CHANGELOG.txt
r3327 r3446 1 TurboGears Changelog1 TurboGears Changelog 2 2 ==================== 3 4 1.0.4: 5 ------ 6 *Changes* 7 8 *Features* 9 * "tg-admin sql" is now more powerful for SQLAlchemy. Ticket #1418 10 11 *Fixes* 12 * Ticket #1185: rollback SA transaction if a controller method fails, and it 13 has an exception_handler. 14 * sa_rwt (SQLAlchemy run with transaction) refactored to fix some corner 15 cases. 16 17 *Contributors* 18 19 Paul Johnston 20 3 21 4 22 1.0.3.2 (July 20, 2007): branches/1.0/turbogears/command/base.py
r3324 r3446 16 16 from turbogears.identity import SecureObject,from_any_host 17 17 from turbogears import config, database 18 from sacommand import sacommand 18 19 19 20 sys.path.insert(0, os.getcwd()) … … 50 51 self.dburi = self.dburi[8:] 51 52 52 53 [dispatch.generic()]54 def sacommand(command, args):55 pass56 57 [sacommand.when("command == 'help'")]58 def sahelp(command, args):59 print """TurboGears SQLAlchemy Helper60 61 help this display62 create create the database tables63 """64 [sacommand.when("command == 'create'")]65 def sacreate(command, args):66 print "Creating tables at %s" % (config.get("sqlalchemy.dburi"))67 from turbogears.database import bind_meta_data, metadata68 bind_meta_data()69 get_model()70 metadata.create_all()71 53 72 54 class SQL(CommandWithDB):