gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUe] Executing a form from a python script


From: Adrian Maier
Subject: [GNUe] Executing a form from a python script
Date: Wed, 15 Nov 2006 12:16:41 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]