Executing a form from a python script

"Adrian Maier" <[email protected]> Wed, 15 Nov 2006 22:04:18 +0200
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
[i'm resending this message because the first time i got a mail delivery
 error: not enough space in receiver mailbox]


Hello ,

I am trying to execute a form from a python script .

I instantiate a GFClient , then i use client.ARGUMENTS.append('myform.gfd') for
specifying the gfd file .

But I also want to specify other parameters: username, password, ui.
Adding those in the same way , with ARGUMENTS.append doesn't work.

  client = GFClient.GFClient()
  client.ARGUMENTS.append('--username')
  client.ARGUMENTS.append('am')
  client.ARGUMENTS.append('--password')
  client.ARGUMENTS.append('paswd')
  client.ARGUMENTS.append('/home/am/src/gfaf/gnue/prod.gfd')
  client.run ()

gnue-forms: Parameter "am" specified, but no value supplied.
For help, type: gnue-forms --help

I don't understand how does the GFClient  processes the arguments. Part
of them are probably handled in the parent class of GFClient ?

How can I execute a form from a python script,  with the ability to
specify in code all the command lien arguments ?


-- 
Adrian Maier