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 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
Awesome. I knew I had just been looking at it for too long. Thanks so much, Kent! Maybe one day, I will help you with something. ;) /alex _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
