pwclient and multiple projects

Yann E. MORIN yann.morin.1998 at free.fr
Sun Jun 29 03:00:33 EST 2014


Hello All!

Currently, ~/.pwclientrc can only hold one Patchwork server and
associated credentials, and only one project.

Having to deal woth three different projects that use Patchwork, on two
different Patchwork server, everytime I switch project, I have to tweak
~/.pwclientrc. this happens many times a day, and can even be as
frequently as every few minutes or so. Having to edit the file so often
is highly inconvenient.

I was curious to see how to efficiently use pwclient when dealing with
multiple projects, and different patchwork instances.

I would also propose a change to ~/.pwclientrc so it can handle this
situation. Here is a proposal for a new format:

    [options]
    default=project-A

    [project-A]
    url=http://my.patchwork.server/path/to/xmlrpc
    username=that-is-me
    password=secret

    [other-project]
    url=http://you.get/the/idea
    username=someone
    password=1234

Then, with a bit of autocompletion magic, one could use pwclient as thus:

    pwclient list -p pr<TAB>

I can even help on the autocompletion stuff. As for pwclient, it is
Python, and I am not that proficient in Python; I can try to see if I
can hack something, but I'm afraid it would take time... :-(

Any comment?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the Patchwork mailing list