Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
On 10/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Alex Ezell wrote: > > ># TODO figure out how to call this soap method with reserved name > >self.call_response = self.soap.import(self.soap_auth, > > file_name, import_groups, soap_flags) > > > I tried to replace the imp

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Kent Johnson
Alex Ezell wrote: ># TODO figure out how to call this soap method with reserved name >self.call_response = self.soap.import(self.soap_auth, > file_name, import_groups, soap_flags) > I tried to replace the import() call with these two lines: > importFunc = getattr(self.soap

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
Oops, meant to send to the list. Sorry, Kent. > > > >>> I am working on building a SOAP client. Unfortunately, one of the > > > >>> methods the SOAP server provides is named "import." The SOAP server is > > > >>> written in PHP. > > > >>> > > > >>> So, my problem is that Python really doesn't like

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Eric Brunson
bob gailer wrote: > Alex Ezell wrote: > >> I am working on building a SOAP client. Unfortunately, one of the >> methods the SOAP server provides is named "import." The SOAP server is >> written in PHP. >> >> So, my problem is that Python really doesn't like me using the word >> "import" to call

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Kent Johnson
Alex Ezell wrote: > On 10/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote: >> Alex Ezell wrote: >>> I am working on building a SOAP client. Unfortunately, one of the >>> methods the SOAP server provides is named "import." The SOAP server is >>> written in PHP. >>> >>> So, my problem is that Python re

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Kent Johnson
Alex Ezell wrote: >> You could try introspection: >> >> importFunc = getattr(self.soap, 'import') >> self.call_response = importFunc(self.soap_auth, file_name, >> import_groups, soap_flags) > > Thanks Kent. I tried it and it seem like importFunc is now something > like 'import.__str__'. I could ma

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread bob gailer
Alex Ezell wrote: > I am working on building a SOAP client. Unfortunately, one of the > methods the SOAP server provides is named "import." The SOAP server is > written in PHP. > > So, my problem is that Python really doesn't like me using the word > "import" to call the SOAP method. This seems un

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Alex Ezell
On 10/24/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Alex Ezell wrote: > > I am working on building a SOAP client. Unfortunately, one of the > > methods the SOAP server provides is named "import." The SOAP server is > > written in PHP. > > > > So, my problem is that Python really doesn't like me

Re: [Tutor] Calling a Method with a Reserved Name

2007-10-24 Thread Kent Johnson
Alex Ezell wrote: > I am working on building a SOAP client. Unfortunately, one of the > methods the SOAP server provides is named "import." The SOAP server is > written in PHP. > > So, my problem is that Python really doesn't like me using the word > "import" to call the SOAP method. The call shou