Changeset 3447
- Timestamp:
- 09/02/07 14:36:33 (11 months ago)
- Files:
-
- branches/1.1/CHANGELOG.txt (modified) (1 diff)
- branches/1.1/turbogears/command/base.py (modified) (2 diffs)
- branches/1.1/turbogears/command/sacommand.py (copied) (copied from branches/1.0/turbogears/command/sacommand.py)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/CHANGELOG.txt
r3320 r3447 1 TurboGears Changelog1 TurboGears Changelog 2 2 ==================== 3 3 4 1.1 (Unreleased): 5 ----------------- 6 4 ======= 5 1.0.4: 6 ------ 7 *Changes* 8 9 *Features* 10 * "tg-admin sql" is now more powerful for SQLAlchemy. Ticket #1418 11 12 *Fixes* 13 * Ticket #1185: rollback SA transaction if a controller method fails, and it 14 has an exception_handler. 15 * sa_rwt (SQLAlchemy run with transaction) refactored to fix some corner 16 cases. 17 18 *Contributors* 19 20 Paul Johnston 21 22 23 1.0.3.2 (July 20, 2007): 24 ------------------------ 7 25 *Changes* 8 26 branches/1.1/turbogears/command/base.py
r3320 r3447 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):