Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
[opensuse-buildservice] [osc] question using osc in python
  • From: "Jan-Simon Möller" <dl9pf@xxxxxx>
  • Date: Tue, 7 Apr 2009 08:15:47 +0200
  • Message-id: <200904070815.47998.dl9pf@xxxxxx>
Hi!

If I create a new api definition in conf.config - how can I write it to disk ?

I start with:

from osc import conf, core

conf.get_config()

<now inserting new definition to conf.config['api_host_options'])

conf.config['api_host_options']["http://foo.bar.org"]["http_headers";] = []
conf.config['api_host_options']["http://foo.bar.org"]["user";] = "spock"
conf.config['api_host_options']["http://foo.bar.org"]["pass";] = "ncc1701d"

Probably I can't see the wood for the trees - how can i write stuff to .oscrc
now ?

Best,
Jan-Simon
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups