Ticket #1401 (closed defect: worksforme)

Opened 2 years ago

Last modified 6 months ago

[PATCH] tg-admin sql does not work on a deployed egg

Reported by: aji Assigned to: anonymous
Priority: normal Milestone: 1.5
Component: tg-admin (non-toolbox) Version: 1.0.2
Severity: normal Keywords: sql
Cc:

Description

Running tg-admin to create a new database for a deployed project fails. The following command generates either an error about setup.py or a request to let tg-admin fix the missing project.

tg-admin --config=/full/path/to/someconfig.cfg --egg=someproject sql create

The attached patch uses turbogears.util.get_project_name() to get the eggname; if it cannot, then it proceeds with the original code, which checks for the development directory structure.

Attachments

base.py.patch (1.7 kB) - added by aji on 06/01/07 17:35:37.
Patch for turbogears/command/base.py

Change History

06/01/07 17:35:37 changed by aji

  • attachment base.py.patch added.

Patch for turbogears/command/base.py

07/23/07 13:26:46 changed by Chris Arndt

  • milestone changed from 1.0.3 to 1.0.4.

Batch promoting 1.0.3 tickets to Milestone 1.0.4

11/25/07 14:50:08 changed by faide

  • milestone changed from 1.0.4 to 1.1.

This patch concerns a branch of code when "--egg" is _not_ in the command line. But the explanation going with it states that it fixes an error regarding a command line that _contains_ the "--egg" parameter...

What should we do here. Last time I checked creation of a db from tg-admin worked quite well with an application installed as an egg. (TurboBlog? uses this method)

06/06/08 04:34:58 changed by faide

  • status changed from new to closed.
  • resolution set to worksforme.