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 #1133 (closed task: worksforme)

Opened 13 years ago

Last modified 10 years ago

create model from multiple files.

Reported by: jorge.vargas Owned by: chrisz
Priority: normal Milestone: 1.0.x bugfix
Component: tg-admin (non-toolbox) Version: 1.0 HEAD
Severity: normal Keywords: needs confirmation
Cc:

Description (last modified by Chris Arndt) (diff)

"tg-admin sql *" should understand that the model can be in multiple files. We need to provide a better way for this.

From the mailing list:

Newer post
 http://tinyurl.com/z4ba4
Older post (with temporary fix)
 http://tinyurl.com/jtn26

Change History

comment:1 Changed 12 years ago by talin

This works (at least in the trunk, not sure about earlier versions), although its not particularly obvious. Look in the file <yourproject>.egg-info/sqlobject.txt and change the line:

db_module=<yourproject>.model

to:

db_module=<yourproject>.model, <yourproject>.your_other_model

comment:2 Changed 12 years ago by alberto

  • Milestone changed from 1.0 to 1.1

comment:3 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:4 Changed 11 years ago by Chris Arndt

  • Description modified (diff)

comment:5 Changed 10 years ago by jorge.vargas

  • Milestone changed from __unclassified__ to 1.x

tg2 uses a package model by default.

comment:6 Changed 10 years ago by Chris Arndt

  • Severity changed from minor to normal
  • Priority changed from high to normal
  • Keywords needs confirmation added
  • Version set to 1.0 HEAD
  • Milestone changed from 1.x to 1.5
  • Owner changed from anonymous to Chris Arndt

comment:7 Changed 10 years ago by Chris Arndt

  • Milestone changed from 1.5 to 1.0.x bugfix

comment:8 Changed 10 years ago by Chris Arndt

  • Owner changed from Chris Arndt to chrisz

comment:9 Changed 10 years ago by chrisz

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

I've checked that it works if you follow the advice in comment 1. Added this to the TG 1.0 docs ( http://docs.turbogears.org/1.0/CreatingBigApplications). I think this is sufficient. For SQLAlchemy, nothing needs to be done.

Note: See TracTickets for help on using tickets.