autopush.web.registration

class autopush.web.registration.NewRegistrationHandler(application, request, **kwargs)[source]

Handle new bridge uaid registrations

post(*args, **kwargs)[source]

HTTP POST

Router type/data registration.

_register_user_and_channel(uaid, chid, router_type, router_data)[source]

Register a new user/channel, return its endpoint

class autopush.web.registration.UaidRegistrationHandler(application, request, **kwargs)[source]

Handles UAID bridge methods

get(*args, **kwargs)[source]

HTTP GET

Return a list of known channelIDs for a given UAID

put(*args, **kwargs)[source]

HTTP PUT

Update router type/data for a UAID.

post(*args, **kwargs)

HTTP PUT

Update router type/data for a UAID.

delete(*args, **kwargs)[source]

HTTP DELETE

Delete all pending records for the given UAID

_uaid_not_found_err(fail)[source]

errBack for uaid lookup not finding the user

class autopush.web.registration.SubRegistrationHandler(application, request, **kwargs)[source]

Handle a new bridge channel id registration for a bridge user

class autopush.web.registration.ChannelRegistrationHandler(application, request, **kwargs)[source]

Handle deleting a channel for a bridge user

_chid_not_found_err(fail)[source]

errBack for unknown chid