aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-08-26Update condition for timestampCrupuk
We need to test boolean only : >>> key="timestamp" >>> value="123456" >>> >>> if key == "timestamp" and value: ... print "Value <> True but, still true" ... else: ... print "value <> True and false" ... Value <> True but, still true
2013-07-22Merge pull request #1 from Crupuk/patch-1Thibaut Horel
Use true timestamp to avoid "Invalid timestamp"
2013-07-22Use true timestamp to avoid "Invalid timestamp"Crupuk
With the original version i got : python /usr/lib/python2.6/site-packages/pushover.py --token "NU2LC5g2G9jgVR9eHVLYAUmkFuPeky" --client "FWhJFb5wgV35bmzmaxeV976K1WqaFE" "Hello" Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pushover.py", line 227, in <module> url_title=args.url_title, timestamp=True) File "/usr/lib/python2.6/site-packages/pushover.py", line 207, in send_message return MessageRequest(payload) File "/usr/lib/python2.6/site-packages/pushover.py", line 104, in __init__ Request.__init__(self, "post", MESSAGE_URL, payload) File "/usr/lib/python2.6/site-packages/pushover.py", line 86, in __init__ raise RequestError(self.answer["errors"]) __main__.RequestError: ==> timestamp is invalid By casting time.time() the error disappears
2013-07-22Use true timestamp to avoid "Invalid timestamp"Crupuk
With the original version i got : python /usr/lib/python2.6/site-packages/pushover.py --token "NU2LC5g2G9jgVR9eHVLYAUmkFuPeky" --client "FWhJFb5wgV35bmzmaxeV976K1WqaFE" "Hello" Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pushover.py", line 227, in <module> url_title=args.url_title, timestamp=True) File "/usr/lib/python2.6/site-packages/pushover.py", line 207, in send_message return MessageRequest(payload) File "/usr/lib/python2.6/site-packages/pushover.py", line 104, in __init__ Request.__init__(self, "post", MESSAGE_URL, payload) File "/usr/lib/python2.6/site-packages/pushover.py", line 86, in __init__ raise RequestError(self.answer["errors"]) __main__.RequestError: ==> timestamp is invalid By casting time.time() the error disappears
2013-04-17Add .gitignoreThibaut Horel
2013-04-17Add MANIFEST.in filev0.1Thibaut Horel
2013-04-16Adding some more meta-informationThibaut Horel
2013-04-16Restructure the documentationThibaut Horel
2013-04-16Use flask-sphinx-theme for the documentationThibaut Horel
2013-04-13Add some documentationThibaut Horel
2013-04-12Make the library callable as a script for basic message sendingThibaut Horel
2013-04-12Add an __all__ variable to limit the exported methodsThibaut Horel
2013-04-11Initial commitThibaut Horel