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 #703 (closed enhancement: wontfix)

Opened 13 years ago

Last modified 10 years ago

tg-admin should accept a --config/-c argument to specify a config file independent of what command is called.

Reported by: turbogears@… Owned by: anonymous
Priority: normal Milestone:
Component: tg-admin (non-toolbox) Version:
Severity: normal Keywords:
Cc:

Description

The tg-admin sql command has its own logic to determine which config file to use, dev or prod. I extended my own start-project.py to also have staging but tg-admin won't respect that.

It would be nice if the detection of config file could be part of the user project and tg-admin will use that.

Change History

comment:1 Changed 13 years ago by anonymous

One way to do this can be to dispense with the tg-admin utility completely and make it a project utility to be run as ./tg-admin. This way the user can change some parts by himself.

The utility doesn't make sense outside of a directory with the config files anyway.

It will necessiate some code changes since the current utility is just a cover for the package code. Just a thought.

comment:2 Changed 13 years ago by kevin

  • Milestone changed from 0.9a3 to 0.9

comment:3 Changed 13 years ago by jorge.vargas

  • Version 0.9a1 deleted
  • Milestone changed from 0.9 to 1.0b2

comment:4 Changed 13 years ago by jorge.vargas

  • Keywords reviewed added

comment:5 Changed 13 years ago by jorge.vargas

  • Component changed from Deployment to tg-admin (non-toolbox)
  • Milestone changed from 1.0b2 to __future__

anyone interested in writting this entry point?

comment:6 Changed 13 years ago by elvelind

the most sane way would probably be to be able have a --config argument that could be append to tg-admin. ie tg-admin --config prod.cfg <command>. This way all commands would get this option.

comment:7 Changed 13 years ago by elvelind

  • Summary changed from tg-admin sql should use a user-provided logic to determine config file to tg-admin should accept a --config/-c argument to specify a config file independent of what command is called.

I'm hijacking this for doing just that.

comment:8 Changed 10 years ago by jorge.vargas

  • Status changed from new to closed
  • Keywords reviewed removed
  • Resolution set to wontfix

It seems there is little interest in this.

comment:9 Changed 10 years ago by anonymous

  • Milestone __future__ deleted

Milestone future deleted

Note: See TracTickets for help on using tickets.