Re: [Tutor] Checking for file completion.

2012-02-21 Thread Steven D'Aprano
Tony Pelletier wrote: Missing a return statement in the case of an exception. Can you explain this? Why would I want the return on the exception? Because if you don't, it will return None. -- Steven ___ Tutor maillist - Tutor@python.org To un

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Dave Angel
On 02/21/2012 05:20 PM, Tony Pelletier wrote: def getReport(service, reportId): reportIds = service.client.factory.create('ArrayOfstring') reportIds.string.append(reportId) try: result = service.client.service.ReportQueryById(reportIds, 'True')

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Tony Pelletier
>> >> def getReport(service, reportId): >>        reportIds = service.client.factory.create('ArrayOfstring') >>        reportIds.string.append(reportId) >> >>        try: >>                result = service.client.service.ReportQueryById(reportIds, >> 'True') >>                if result.Report[0].Re

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Dave Angel
On 02/21/2012 01:42 PM, Tony Pelletier wrote: Please post your message again, as a text message rather than an html one. Reading non-trivial python code that's lost all its indentation is impossible. You've done it before, but that case was simple enough to not matter much. -- DaveA Sor

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Tony Pelletier
> Please post your message again, as a text message rather than an html one. >  Reading non-trivial python code that's lost all its indentation is > impossible.  You've done it before, but that case was simple enough to not > matter much. > > > > -- > > DaveA > Sorry about that. I actually though

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Dave Angel
On 02/21/2012 01:10 PM, Tony Pelletier wrote: Hi, I'm struggling with what I think seems to be a problem. I've created a program that does numerous SOAP calls. In short, I create a report on a report server, pull that file down then parse that file that's been written locally for data to make