Hi Mujtaba, You can download the src from the codesite page:
http://code.google.com/p/uprgae-console/source/checkout The code of interest is in the reporting.py file. Thanks, --Tony On Jan 22, 10:57 am, Mujtaba <[email protected]> wrote: > Do you know where I can find the code that contains the report_runner > methods? > > On Jan 22, 3:58 am, "Tony (Google)" <[email protected]> wrote: > > > Hi Mujtaba, > > > The report_runner.RunReport method actually does not have a return > > statement and thus always returns None. You need to modify that > > method to return the response instead of just "print"ing it out like > > below: > > > ... > > if out_file_name is None: > > print response, > > else: > > ... > > > to > > ... > > if out_file_name is None: > > return response, > > else: > > ... > > > Thanks, > > > --Tony > > > On Jan 21, 9:48 am, Mujtaba <[email protected]> wrote: > > > > Hello everyone. > > > > I have modified Edwood Ocasio's report-paging-demo.py script from his > > > Google uprgae projecthttp://code.google.com/p/uprgae-console/. I am > > > using his demo as a basis for a report I am generating about the 25k+ > > > users in my school's Google email domain. The while loop shown below > > > gets stuck in an infinite loop. The End-Of-Report seems to be the > > > correct thing to check for but the response object is always set to > > > "None" for some reason so when the response is compared to End-Of- > > > Report, it is always set to false and the while loop goes on forever. > > > Does anyone have any idea how I can get the correct output to check > > > for the End-Of-Report? > > > > Code snipper lines 75-79: > > > > while not EndOfReport: > > > numpage = numpage + 1 > > > print "Page ",numpage > > > > > > response=report_runner.RunReport(report_name, report_date, > > > out_file_name,page_requested=numpage) > > > EndOfReport= (response == "End-Of-Report") --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
