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, 'import')
> self.call_response = self.soap.importFunc(self.soap_auth, file_name,
> import_groups, soap_flags)

this should be
self.call_response = importFunc(self.soap_auth, file_name,
import_groups, soap_flags)

importFunc *is* the function you want to call, it is not an attribute of 
self.soap.

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to