Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str CompareEq NameLoad Str CompareEq NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults TupleLoad AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad comprehension NameStore SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str orelse Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad FunctionDef arguments args defaults body Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Generates and emails daily exception reports.

See google/appengine/ext/ereporter/__init__.py for usage details.

Valid query string arguments to the report_generator script include:
delete:   Set to 'false' to prevent deletion of exception records from the
          datastore after sending a report. Defaults to 'true'.
debug:    Set to 'true' to return the report in the response instead of
          emailing it.
date:     The date to generate the report for, in yyyy-mm-dd format. Defaults to
          yesterday's date. Useful for debugging.
max_results: Maximum number of entries to include in a report.
sender:   The email address to use as the sender. Must be an administrator.
to:       If specified, send reports to this address. If not specified, all
          admins are sent the report.
versions: 'all' to report on all minor versions, or 'latest' for the latest.
 N/A datetime N/A itertools N/A os N/A re xml.sax saxutils google.appengine.api namespace_manager google.appengine.api mail google.appengine.ext db google.appengine.ext ereporter google.appengine.ext webapp google.appengine.ext.webapp _template google.appengine.ext.webapp.util run_wsgi_app isTrue N/A N/A val N/A N/A N/A Determines if a textual value represents 'true'.

  Args:
    val: A string, which may be 'true', 'yes', 't', '1' to indicate True.
  Returns:
    True or False
   N/A val N/A N/A val lower N/A N/A N/A val true N/A val t N/A val 1 N/A val yes N/A ReportGenerator N/A N/A webapp RequestHandler N/A N/A Handler class to generate and email an exception report. N/A DEFAULT_MAX_RESULTS 100 __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super ReportGenerator self __init__ args kwargs N/A N/A self send_mail N/A mail send_mail N/A N/A self send_mail_to_admins N/A mail send_mail_to_admins N/A GetQuery N/A N/A self order N/A None N/A N/A Creates a query object that will retrieve the appropriate exceptions.

    Returns:
      A query to retrieve the exceptions required.
     N/A q N/A N/A N/A ereporter ExceptionRecord all N/A N/A N/A q filter date = N/A self yesterday N/A N/A N/A q filter major_version = N/A self major_version N/A N/A N/A N/A N/A self version_filter lower latest N/A N/A N/A N/A q filter minor_version = N/A self minor_version N/A order N/A N/A N/A N/A q order order N/A q N/A GenerateReport N/A N/A self exceptions N/A N/A N/A Generates an HTML exception report.

    Args:
      exceptions: A list of ExceptionRecord objects. This argument will be
        modified by this function.
    Returns:
      An HTML exception report.
     N/A N/A N/A exceptions sort key N/A N/A N/A e N/A N/A N/A e minor_version N/A N/A e count N/A versions N/A N/A minor N/A list excs N/A N/A minor excs N/A N/A itertools groupby exceptions N/A N/A N/A e N/A N/A e minor_version N/A template_values N/A version_filter version_count exception_count occurrence_count app_id major_version date versions N/A self version_filter N/A len versions N/A sum N/A N/A len excs N/A N/A _ excs versions N/A sum N/A N/A y count N/A x versions N/A y N/A x N/A 1 N/A self app_id N/A self major_version N/A self yesterday versions N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ templates report.html N/A N/A N/A _template render path template_values N/A SendReport N/A N/A self report N/A N/A N/A Emails an exception report.

    Args:
      report: A string containing the report to send.
     N/A subject N/A Daily exception report for app "%s", major version "%s" N/A N/A self app_id N/A self major_version N/A report_text N/A N/A saxutils unescape N/A N/A re sub <[^>]+> report N/A mail_args N/A sender subject body html N/A self sender subject report_text report N/A N/A self to N/A N/A N/A mail_args N/A to N/A self to N/A N/A N/A self send_mail mail_args N/A N/A N/A N/A self send_mail_to_admins mail_args N/A get N/A N/A self N/A N/A N/A N/A self version_filter N/A N/A N/A N/A self request GET get versions all N/A N/A self sender N/A N/A N/A self request GET N/A sender N/A N/A self to N/A N/A N/A N/A self request GET get to None N/A report_date N/A N/A N/A N/A self request GET get date None N/A report_date N/A N/A N/A self yesterday N/A N/A datetime date N/A N/A int x N/A x N/A N/A report_date split - N/A N/A N/A self yesterday N/A N/A N/A N/A datetime date today N/A N/A datetime timedelta days 1 N/A N/A self app_id N/A N/A os environ N/A APPLICATION_ID N/A version N/A N/A os environ N/A CURRENT_VERSION_ID N/A N/A N/A self major_version N/A self minor_version N/A N/A version rsplit . 1 N/A N/A self minor_version N/A int N/A self minor_version N/A N/A self max_results N/A int N/A N/A N/A N/A self request GET get max_results N/A self DEFAULT_MAX_RESULTS N/A N/A self debug N/A isTrue N/A N/A N/A N/A self request GET get debug false N/A N/A self delete N/A isTrue N/A N/A N/A N/A self request GET get delete true N/A N/A N/A namespace_manager set_namespace N/A N/A N/A exceptions N/A N/A N/A N/A self GetQuery order -minor_version fetch N/A self max_results N/A N/A N/A N/A db NeedIndexError N/A N/A exceptions N/A N/A N/A N/A self GetQuery fetch N/A self max_results N/A exceptions N/A N/A report N/A N/A self GenerateReport exceptions N/A N/A self debug N/A N/A N/A N/A N/A N/A self response out write report N/A N/A N/A N/A self SendReport report N/A N/A self delete N/A N/A N/A N/A db delete exceptions N/A N/A N/A application N/A N/A webapp WSGIApplication N/A N/A .* ReportGenerator main N/A N/A N/A N/A N/A N/A run_wsgi_app application N/A N/A N/A __name__ __main__ N/A N/A N/A main