Changeset 5031
- Timestamp:
- 07/24/08 16:28:08 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/model/model.template_tmpl
r4597 r5031 7 7 8 8 foo_table = Table("Foo", metadata, 9 Column("id", types.Integer, primary_key=True),10 Column("bar", types.String(255), nullable=False),11 )9 Column("id", types.Integer, primary_key=True), 10 Column("bar", types.String(255), nullable=False), 11 ) 12 12 13 13 class Foo(object): … … 19 19 mapper(Foo, foo_table) 20 20 21 Classes for reflected tables may be defined here, but the table and22 mapping itself must be done in the init_model function.21 # Classes for reflected tables may be defined here, but the table and 22 # mapping itself must be done in the init_model function. 23 23 24 24