Add a patch to add the possibility to pass the db name to the tryton client call

This commit is contained in:
Bernat Brunet Torruella 2014-01-16 15:19:20 +01:00
parent 8a513418bc
commit 8dd36f0461
2 changed files with 22 additions and 0 deletions

21
add_db_client.diff Normal file
View File

@ -0,0 +1,21 @@
diff -r 5162b30a8b48 tryton/config.py
--- ./tryton/tryton/config.py Wed Dec 04 16:57:05 2013 +0100
+++ ./tryton/tryton/config.py Thu Jan 16 15:15:58 2014 +0100
@@ -96,6 +96,8 @@
help=_("specify the server port"))
parser.add_option("-s", "--server", dest="server",
help=_("specify the server hostname"))
+ parser.add_option("-b", "--database", dest="db",
+ help=_("specify the data base to connect"))
opt, self.arguments = parser.parse_args()
if len(self.arguments) > 1:
@@ -123,7 +125,7 @@
opt.log_level = 'ERROR'
logging.getLogger().setLevel(loglevels[opt.log_level.upper()])
- for arg in ('login', 'port', 'server'):
+ for arg in ('login', 'port', 'server', 'db'):
if getattr(opt, arg):
self.options['login.' + arg] = getattr(opt, arg)

1
series
View File

@ -6,3 +6,4 @@ issue10739.diff
issue10467.diff
issue1961002_60001.diff
issue130_392_10919.diff
add_db_client.diff