aboutsummaryrefslogtreecommitdiffstats
path: root/doc/conf.py
diff options
context:
space:
mode:
authorFilip Lundborg <filip@filipl.se>2014-10-26 19:52:29 +0100
committerFilip Lundborg <filip@filipl.se>2014-10-26 19:52:29 +0100
commit8c9c32f9a72b0e49e67e4e5bd7cfcb3565c87597 (patch)
tree5833a684ecc57917b71176739b0a6a50e97099e5 /doc/conf.py
parent4a8fc29aa1181824c57b28e701b9a436a3a8240b (diff)
downloadpython-pushover-8c9c32f9a72b0e49e67e4e5bd7cfcb3565c87597.tar.gz
Fix consistency in MessageRequest.poll
The help, example and actual code had different opinions on how the function should behave. This commit make them agree. poll() will return the base Request object until the receipt has expired, been acknowledged or called_back upon. Once one of those three things has occurred it returns None. The example now has expire=120 and retry=60 since without those arguments it is unable to send a message with priority=2. The expired_at does not exist, it is called expires_at in the Pushover API. This is fixed as well. The values of expires_at, acknowledged_at and called_back_at can be found as attributes in the MessageRequest object like before.
Diffstat (limited to 'doc/conf.py')
0 files changed, 0 insertions, 0 deletions