Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Kamil Wasilewski
> On Friday 05 March 2010, Kamil Wasilewski wrote: >> > server.doGetCountries(**{ >> > 'country-code': COUNTRYID, 'webapi-key': WEBAPIKEY >> > }) >> >> The above gives a syntax error... > What kind of syntax error? I tested this approached on the interactive > Python sh

Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Maarten ter Huurne
On Friday 05 March 2010, Kamil Wasilewski wrote: > > server.doGetCountries(**{ > > 'country-code': COUNTRYID, 'webapi-key': WEBAPIKEY > > }) > > The above gives a syntax error... What kind of syntax error? I tested this approached on the interactive Python shell and it

Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Kamil Wasilewski
Hello Maarten, Friday, March 5, 2010, 6:26:36 PM, you wrote: > On Friday 05 March 2010, Kamil Wasilewski wrote: >> from SOAPpy import WSDL >> wsdlFile = "http://webapi.allegro.pl/uploader.php?wsdl"; >> server = WSDL.Proxy(wsdlFile) >> server.soapproxy.config.argsOrdering = {'doGetCountries': >>

Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Maarten ter Huurne
On Friday 05 March 2010, Kamil Wasilewski wrote: > from SOAPpy import WSDL > wsdlFile = "http://webapi.allegro.pl/uploader.php?wsdl"; > server = WSDL.Proxy(wsdlFile) > server.soapproxy.config.argsOrdering = {'doGetCountries': > ['country-code', 'webapi-key'] } > server.doGetCountries(country-code=

Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Phil Christensen
On Mar 5, 2010, at 12:15 PM, Kamil Wasilewski wrote: > server.soapproxy.config.argsOrdering = {'doGetCountries': ['country-code', > 'webapi-key'] } > server.doGetCountries(country-code=COUNTRYID}, webapi-key=WEBAPIKEY) > > The above method allows me to specify the order and name of variables bein

[Twisted-Python] Escaping variable names

2010-03-05 Thread Kamil Wasilewski
Hi, Ive got an issue where a variable name needs to have a minus sign (-) in it. from SOAPpy import WSDL wsdlFile = "http://webapi.allegro.pl/uploader.php?wsdl"; server = WSDL.Proxy(wsdlFile) server.soapproxy.config.argsOrdering = {'doGetCountries': ['country-code', 'webapi-key'] } server.doGetCo