Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1701 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

[PATCH] Put an init model function in the models __init__.py

Reported by: mramm Owned by: anonymous
Priority: normal Milestone:
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

Follow Pylons lead here to make introspecting tables from the database easy in TG2.

Attachments

init_model.diff Download (2.3 KB) - added by lucianopanaro 10 years ago.

Change History

Changed 10 years ago by lucianopanaro

comment:1 Changed 10 years ago by lucianopanaro

  • Summary changed from Put an init model function in the models __init__.py to [PATCH] Put an init model function in the models __init__.py

Updated environment.py and model.init.py basing on Pylons' version. Having the initmodel(engine) we are now able to set up table reflection for our models.

comment:2 Changed 10 years ago by mramm

Looks good.

I'll merge this right away.

--Mark

comment:3 Changed 10 years ago by khorn

has this been merged?

comment:4 Changed 10 years ago by mramm

  • Status changed from new to closed
  • Resolution set to fixed

I merged in something like the above patch, with a few small modifications for readability.

comment:5 Changed 9 years ago by anonymous

  • Milestone 2.0-preview-1 deleted

Milestone 2.0-preview-1 deleted

Note: See TracTickets for help on using tickets.