Module ImportFrom alias alias Import alias Import alias Import alias alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad Assign NameStore Dict Str Str TryExcept body ImportFrom alias alias handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Pass Assign NameStore Str Assign NameStore IfExp NameLoad Str Str Assign NameStore IfExp NameLoad Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Raise Call NameLoad Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str Dict Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Str orelse If CompareEq NameLoad Str body Assign NameStore Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad TupleLoad NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareNotEq NameLoad NameLoad CompareGt NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Dict Str Str BinOpAdd Str SubscriptLoad NameLoad Index Str Str Assign NameStore Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Return Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Num body Return orelse Assign NameStore Num For NameStore NameLoad body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str orelse If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad AugAssignAdd NameStore Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore BoolOpOr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list
N/A datetime datetime timedelta N/A logging N/A re N/A urllib urllib2 N/A N/A N/A json N/A N/A N/A ImportError N/A N/A simplejson json google.appengine.api taskqueue django.core.cache cache django.utils importlib N/A LOCALHOST False N/A GCM_CONFIG N/A gcm_api_key <YOUR-GCM-API-KEY> N/A N/A settings LOCALHOST GCM_CONFIG N/A N/A N/A N/A N/A N/A logging info GCM settings module not found. Using defaults. N/A N/A GOOGLE_LOGIN_URL https://www.google.com/accounts/ClientLogin N/A GOOGLE_GCM_SEND_URL N/A LOCALHOST http://android.apis.google.com/gcm/send https://android.apis.google.com/gcm/send N/A GOOGLE_GCM_SEND_URL N/A LOCALHOST http://android.googleapis.com/gcm/send https://android.googleapis.com/gcm/send N/A GCM_QUEUE_NAME gcm-retries N/A GCM_QUEUE_CALLBACK_URL /gae_python_gcm/send_request N/A MEMCACHE_PREFIX GCMConnection: N/A RETRY_AFTER retry_after N/A TOTAL_ERRORS total_errors N/A TOTAL_MESSAGES total_messages GCMMessage N/A N/A N/A device_tokens None N/A notification None N/A collapse_key None N/A delay_while_idle None N/A time_to_live None __init__ N/A N/A self device_tokens notification collapse_key delay_while_idle time_to_live N/A None None None N/A N/A N/A isinstance device_tokens list N/A N/A N/A self device_tokens device_tokens N/A N/A N/A self device_tokens N/A device_tokens N/A N/A self notification notification N/A N/A self collapse_key collapse_key N/A N/A self delay_while_idle delay_while_idle N/A N/A self time_to_live time_to_live N/A __unicode__ N/A N/A self N/A N/A N/A N/A %s:%s:%s:%s:%s N/A N/A repr N/A self device_tokens N/A repr N/A self notification N/A repr N/A self collapse_key N/A repr N/A self delay_while_idle N/A repr N/A self time_to_live N/A json_string N/A N/A self N/A N/A N/A N/A N/A N/A self device_tokens N/A N/A isinstance N/A self device_tokens list N/A N/A N/A N/A logging error N/A GCMMessage generate_json_string error. Invalid device tokens:  N/A repr self N/A N/A Exception GCMMessage generate_json_string error. Invalid device tokens. N/A json_dict N/A N/A N/A json_dict N/A registration_ids N/A self device_tokens N/A N/A isinstance N/A self notification dict N/A N/A N/A json_dict N/A data N/A self notification N/A N/A N/A json_dict N/A data N/A data N/A self notification N/A N/A self collapse_key N/A N/A N/A json_dict N/A collapse_key N/A self collapse_key N/A N/A self delay_while_idle N/A N/A N/A json_dict N/A delay_while_idle N/A self delay_while_idle N/A N/A self time_to_live N/A N/A N/A json_dict N/A time_to_live N/A self time_to_live N/A json_str N/A N/A json dumps json_dict N/A json_str N/A N/A GCMConnection N/A N/A notify_device N/A N/A self message deferred N/A False N/A N/A N/A N/A self _incr_memcached TOTAL_MESSAGES 1 N/A N/A N/A self _submit_message message deferred deferred N/A debug N/A N/A self option N/A N/A N/A N/A option help N/A N/A Commands: help stats
 N/A N/A N/A option stats N/A N/A output N/A output N/A N/A messages_sent:  N/A str N/A N/A self _get_memcached TOTAL_MESSAGES N/A output N/A N/A backing_off_retry_after:  N/A str N/A N/A self _get_memcached RETRY_AFTER N/A output N/A N/A total_errors:  N/A str N/A N/A self _get_memcached TOTAL_ERRORS N/A output N/A N/A Invalid command
Commands: help stats
 N/A delete_bad_token N/A N/A self bad_device_token N/A N/A N/A N/A N/A logging info N/A delete_bad_token():  N/A repr bad_device_token N/A N/A delete_bad_token_callback_func GCM_CONFIG N/A N/A bad_token_callback_func_path N/A GCM_CONFIG N/A delete_bad_token_callback_func N/A N/A mod_path func_name N/A N/A bad_token_callback_func_path rsplit . 1 N/A mod N/A N/A importlib import_module mod_path N/A N/A N/A logging info N/A delete_bad_token_callback_func:  N/A repr N/A mod_path func_name mod N/A bad_token_callback_func N/A getattr mod func_name N/A N/A bad_token_callback_func bad_device_token N/A update_token N/A N/A self old_device_token new_device_token N/A N/A N/A N/A N/A logging info N/A update_token():  N/A repr N/A old_device_token new_device_token N/A N/A update_token_callback_func GCM_CONFIG N/A N/A bad_token_callback_func_path N/A GCM_CONFIG N/A update_token_callback_func N/A N/A mod_path func_name N/A N/A bad_token_callback_func_path rsplit . 1 N/A mod N/A N/A importlib import_module mod_path N/A N/A N/A logging info N/A update_token_callback_func:  N/A repr N/A mod_path func_name mod N/A bad_token_callback_func N/A getattr mod func_name N/A N/A bad_token_callback_func old_device_token new_device_token N/A login_complete N/A N/A self N/A N/A N/A N/A _gcm_connection_memcache_key N/A N/A self variable_name N/A N/A N/A N/A GCMConnection: variable_name N/A _get_memcached N/A N/A self variable_name N/A N/A N/A memcache_key N/A N/A self _gcm_connection_memcache_key variable_name N/A N/A N/A cache get memcache_key N/A _set_memcached N/A N/A self variable_name value timeout N/A None N/A N/A memcache_key N/A N/A self _gcm_connection_memcache_key variable_name N/A N/A N/A cache set memcache_key value timeout timeout N/A _incr_memcached N/A N/A self variable_name increment N/A N/A N/A memcache_key N/A N/A self _gcm_connection_memcache_key variable_name N/A N/A N/A N/A N/A cache incr memcache_key increment N/A N/A N/A ValueError N/A N/A N/A N/A cache set memcache_key increment N/A _requeue_message N/A N/A self message N/A N/A N/A N/A N/A taskqueue add queue_name GCM_QUEUE_NAME url GCM_QUEUE_CALLBACK_URL params N/A device_token collapse_key notification N/A message device_tokens N/A message collapse_key N/A message notification N/A _submit_message N/A N/A self message deferred N/A False N/A N/A deferred N/A N/A N/A N/A self _requeue_message message N/A N/A N/A N/A self _send_request message N/A _send_request N/A N/A self message N/A N/A N/A N/A N/A N/A message device_tokens None N/A N/A message notification None N/A N/A N/A N/A logging error Message must contain device_tokens and notification. N/A False N/A retry_after N/A N/A self _get_memcached RETRY_AFTER N/A N/A N/A retry_after None N/A retry_after N/A N/A datetime now N/A N/A N/A N/A logging warning N/A N/A N/A RETRY_AFTER:  N/A repr retry_after , requeueing message:  N/A repr message N/A N/A N/A self _requeue_message message N/A N/A headers N/A Authorization Content-Type N/A key= N/A GCM_CONFIG N/A gcm_api_key application/json N/A gcm_post_json_str N/A N/A N/A gcm_post_json_str N/A N/A message json_string N/A N/A N/A N/A N/A N/A logging exception N/A Error generating json string for message:  N/A repr message N/A N/A N/A N/A logging info N/A Sending gcm_post_body:  N/A repr gcm_post_json_str N/A request N/A N/A urllib2 Request GOOGLE_GCM_SEND_URL gcm_post_json_str headers N/A N/A N/A resp N/A N/A urllib2 urlopen request N/A resp_json_str N/A N/A resp read N/A resp_json N/A N/A json loads resp_json_str N/A N/A N/A logging info N/A _send_request() resp_json:  N/A repr resp_json N/A failure N/A resp_json N/A failure N/A canonical_ids N/A resp_json N/A canonical_ids N/A results N/A resp_json N/A results N/A N/A N/A failure 0 N/A canonical_ids 0 N/A N/A N/A N/A result_index 0 N/A result results N/A N/A N/A N/A message_id result N/A registration_id result N/A N/A N/A N/A old_device_token N/A N/A message device_tokens N/A result_index N/A new_device_token N/A result N/A registration_id N/A N/A N/A self update_token old_device_token new_device_token N/A N/A N/A N/A N/A N/A logging exception Error updating device token N/A N/A N/A error result N/A N/A error_msg N/A N/A result get error N/A N/A N/A device_token N/A N/A message device_tokens N/A result_index N/A N/A N/A self _on_error device_token error_msg message N/A N/A N/A N/A N/A N/A logging exception N/A Error handling GCM error:  N/A repr error_msg N/A result_index 1 N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A N/A self _incr_memcached TOTAL_ERRORS 1 N/A N/A N/A e code 400 N/A N/A N/A N/A logging error N/A 400, Invalid GCM JSON message:  N/A repr gcm_post_json_str N/A N/A N/A N/A e code 401 N/A N/A N/A N/A logging error 401, Error authenticating with GCM. Retrying message. Might need to fix auth key! N/A N/A N/A self _requeue_message message N/A N/A N/A N/A e code 500 N/A N/A N/A N/A logging error N/A 500, Internal error in the GCM server while trying to send message:  N/A repr gcm_post_json_str N/A N/A N/A N/A e code 503 N/A N/A retry_seconds N/A N/A int N/A N/A N/A resp headers get Retry-After 10 N/A N/A N/A logging error N/A 503, Throttled. Retry after delay. Requeuing message. Delay in seconds:  N/A str retry_seconds N/A retry_timestamp N/A N/A N/A datetime now N/A timedelta seconds retry_seconds N/A N/A N/A self _set_memcached RETRY_AFTER retry_timestamp N/A N/A N/A self _requeue_message message N/A N/A N/A N/A logging exception N/A N/A N/A N/A N/A Unexpected HTTPError:  N/A str N/A e code N/A e msg N/A N/A e read N/A _on_error N/A N/A self device_token error_msg message N/A N/A N/A N/A N/A self _incr_memcached TOTAL_ERRORS 1 N/A N/A error_msg MissingRegistration N/A N/A N/A N/A logging error ERROR: GCM message sent without device token. This should not happen! N/A N/A N/A error_msg InvalidRegistration N/A N/A N/A N/A self delete_bad_token device_token N/A N/A N/A error_msg MismatchSenderId N/A N/A N/A N/A logging error N/A ERROR: Device token is tied to a different sender id:  N/A repr device_token N/A N/A N/A self delete_bad_token device_token N/A N/A N/A error_msg NotRegistered N/A N/A N/A N/A self delete_bad_token device_token N/A N/A N/A error_msg MessageTooBig N/A N/A N/A N/A logging error ERROR: GCM message too big (max 4096 bytes). N/A N/A N/A error_msg InvalidTtl N/A N/A N/A N/A logging error ERROR: GCM Time to Live field must be an integer representing a duration in seconds between 0 and 2,419,200 (4 weeks). N/A N/A N/A error_msg MessageTooBig N/A N/A N/A N/A logging error ERROR: GCM message too big (max 4096 bytes). N/A N/A N/A error_msg Unavailable N/A N/A retry_seconds 10 N/A N/A N/A logging error N/A ERROR: GCM Unavailable. Retry after delay. Requeuing message. Delay in seconds:  N/A str retry_seconds N/A retry_timestamp N/A N/A N/A datetime now N/A timedelta seconds retry_seconds N/A N/A N/A self _set_memcached RETRY_AFTER retry_timestamp N/A N/A N/A self _requeue_message message N/A N/A N/A error_msg InternalServerError N/A N/A N/A N/A logging error N/A ERROR: Internal error in the GCM server while trying to send message:  N/A repr message N/A N/A N/A N/A logging error N/A Unknown error: %s for device token: %s N/A N/A repr error_msg N/A repr device_token N/A N/A