Commit graph

19 commits

Author SHA1 Message Date
Romain Bignon
e787a71ea8 prefix private attribute with a _ 2012-04-29 22:07:48 +02:00
Romain Bignon
aea269e9f6 create UserError exception
Modules can raise this exception when they want to print errors to user
2012-04-25 13:43:52 +02:00
Romain Bignon
f2157c4cfb fix some conversion warnings 2012-04-03 22:40:49 +02:00
Romain Bignon
c79b8622e8 save IDs as integers in storage 2012-03-29 21:04:29 +02:00
Romain Bignon
4534457b27 remove unused import 2012-03-24 08:29:51 +01:00
Laurent Bachelier
79724c90f5 Remove "thread" argument in iter_unread_messages
It is unused, and no backend implemented it — so it was wrong to have it
in the function signature.
It also does not seem very helpful, we have get_threads() if we want to
do something advanced with treads.

fixes #825
2012-03-23 07:04:40 +01:00
Romain Bignon
9bf7d618d8 don't crash if a message content is None 2012-03-22 21:55:34 +01:00
Romain Bignon
4d3682eb23 adopteunmec seems to have changed its charset (refs #820) 2012-03-22 21:54:46 +01:00
Laurent Bachelier
b8d1a52732 Use simplejson first, and centralize import
simplejson is supposed to be faster:
http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
2012-03-16 16:27:22 +01:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Laurent Bachelier
32b0895ea6 Raise exception instances, not classes 2012-02-11 01:07:21 +01:00
Laurent Bachelier
0fa7060b68 Better descriptions for modules 2012-02-11 00:46:48 +01:00
Laurent Bachelier
5ea30516ac Fix incorrect translation
While this changes constants names, I think it is important as "accused" is
complely wrong. E-mails use the term "Read-receipts" so I chose
to go with RECEIVED.
2012-02-10 01:28:40 +01:00
Romain Bignon
4be4b40509 bump to 0.b 2012-02-05 19:35:30 +01:00
Romain Bignon
9300d08e24 do not try to get hidden photos as they are not available 2012-02-05 19:35:30 +01:00
Romain Bignon
04a022a2dd fix getting profiles when a photo is unavailable 2012-02-05 19:22:51 +01:00
Romain Bignon
b10f21334b do not crash if there are php errors before json 2012-01-21 17:54:17 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00