Module Expr Str Assign NameStore Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad If Call AttributeLoad NameLoad attr Str body Return NameLoad If Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr body Return Dict Str Str Str Str Str BinOpMod Str AttributeLoad NameLoad attr Str Str BinOpMod Str AttributeLoad NameLoad attr Str Return NameLoad decorator_list Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr keyword Num Return TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Expr Call AttributeLoad NameLoad attr keyword Num Return Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Ping handler.

Logs ping request and response to INFO.

May send back a message to the client based on the value of the fields in the ping request (eg: notice of
newer version).

The message is composed of:
- title: required string: displayed on the app dashboard
- body: optional string: displayed if the title box is expanded
- link: optional string: link is opened if the title box is clicked
- identifier: required string: if the identifier matches the last one received by the client, the message
  is not displayed
- severity: required string: one of:
  - SILENT: the message is not displayed, but still saved by the client (useful to override any previous message)
  - INFO: the message is displayed on the dashboard (orange? green?)
  - ATTENTION: the message is displayed on the dashboard (red? orange?)
  - DISABLE_NETWORK: the message is displayed on the dashboard (red) and requests to the backend are disallowed
    (except for periodic pings).

 N/A __author__ marc@emailscrubbed.com (Marc Berhault) N/A json N/A logging viewfinder.backend.base util viewfinder.backend.base.client_version ClientVersion viewfinder.backend.www base json_schema www_util PingHandler N/A N/A base BaseHandler N/A N/A Handles ping requests:
  - logs json request
  - optionally sends back (and logs) an informational message based on the request parameters
   check_xsrf_cookie N/A N/A self N/A N/A N/A N/A post N/A N/A self N/A N/A _BuildMessage N/A N/A msg N/A N/A N/A device N/A N/A msg get device None N/A N/A device N/A N/A None N/A app_version N/A ClientVersion N/A N/A device get version None N/A N/A N/A N/A app_version IsValid N/A N/A None N/A N/A N/A app_version LT 1.6.0 N/A N/A None N/A N/A N/A app_version IsAppStore N/A N/A None N/A None N/A N/A N/A N/A app_version GE 1.6.0.41 N/A N/A app_version IsDev N/A N/A N/A title body link identifier severity N/A congrats on running %s N/A app_version version you have the latest development version http://appstore.com/minetta/viewfinder N/A latest-dev-%s N/A app_version version INFO N/A None N/A N/A content_type N/A N/A N/A self request headers N/A Content-Type N/A N/A N/A N/A content_type startswith application/json N/A N/A N/A N/A self send_error status_code 415 N/A N/A N/A N/A msg N/A N/A self _LoadJSONRequest N/A N/A N/A Exception N/A N/A N/A N/A logging info N/A ping FAIL: body: %r N/A N/A N/A self request body N/A 256 N/A N/A N/A self send_error status_code 400 N/A N/A response_msg N/A _BuildMessage msg N/A response_msg N/A N/A ping_response N/A message response_msg N/A N/A N/A logging info N/A ping OK: request: %s response: %s N/A N/A N/A json dumps msg N/A N/A json dumps ping_response N/A N/A N/A self write ping_response N/A N/A N/A N/A logging info N/A ping OK: request: %s response: {} N/A N/A json dumps msg N/A N/A N/A self write {} N/A N/A self xsrf_token N/A N/A N/A self set_status 200 N/A N/A N/A self finish N/A N/A