Commit graph

45 commits

Author SHA1 Message Date
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
cedbc3ae77 check types of compared objects in __eq__() operators 2012-03-27 11:55:24 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Laurent Bachelier
ba5949cd22 Remove nb_unread/nb_messages in CapMessages
Most backends don't set it nb_messages and no application used it.
No backends set nb_unread and only one application tried to use it.

This should help avoid useless fillobj() calls in some cases.

fixes #827
2012-03-23 07:04:42 +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
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
8eea2257a1 allow datetime.date type (in add to datetime.datetime) 2011-08-03 09:41:53 +02:00
Romain Bignon
2825ff643b pylint fixes 2011-05-08 17:51:06 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
144bb8a7e4 works with DLFP2.0RoR-ng 2011-02-24 21:36:19 +01:00
Romain Bignon
f6e9fc30d4 a message requires to have a Thread 2010-12-08 12:10:54 +01:00
Romain Bignon
912d3496c9 add flags IS_THREADS and IS_DISCUSSION to Thread to know how to display messages 2010-11-28 11:34:12 +01:00
Christophe Benz
18e02f2fea handle multiple receivers in messages 2010-11-22 15:28:27 +01:00
Romain Bignon
c83c923e3d moved ICapDating.get_status() and ICapMessagesPost.get_status() into ICapAccount.get_account_status() 2010-11-20 20:52:53 +01:00
Christophe Benz
b24b40ac98 implement StatusField in sfr backend 2010-11-20 19:56:24 +01:00
Christophe Benz
e5f0a3cca6 oops 2010-11-19 13:50:30 +01:00
Christophe Benz
9a13c44094 thread is optional in a Message 2010-11-19 13:50:30 +01:00
Christophe Benz
07bca34982 change docstr 2010-11-17 20:48:54 +01:00
Romain Bignon
710d8ffd54 fix compare of two messages 2010-10-30 12:27:21 +02:00
Romain Bignon
916400467e use "basestring" instead of "(str,unicode)" 2010-10-16 17:44:09 +02:00
Romain Bignon
92c6507f71 use the new add_field() method to define fields 2010-10-08 13:43:57 +02:00
Romain Bignon
cca5e98888 set the FIELDS attribute to Thread and Message classes 2010-09-26 23:37:03 +02:00
Romain Bignon
9e01185b1a title and sender are not needed anymore 2010-08-31 09:22:31 +02:00
Romain Bignon
42dd9ec4e1 new API for ICapMessages and ICapMessagesPost (introduce threads objects) 2010-08-30 16:59:52 +02:00
Romain Bignon
404d7290ba a lot of pyflakes and pylint fixes 2010-08-13 22:23:10 +02:00
Romain Bignon
50d0c9a728 enhancement of the ICapMessages.Message object 2010-08-13 14:38:42 +02:00
Christophe Benz
45ffb0fe7d s/ICap/IBaseCap and add constants 2010-08-12 16:04:53 +02:00
Christophe Benz
33eb2290ae new-style class 2010-07-03 22:48:18 +02:00
Christophe Benz
470f2a9fe2 use real comments for licence header 2010-06-22 16:27:33 +02:00
Romain Bignon
5be1d36beb new backend 'fourchan' (implements ICapMessages) 2010-06-08 22:18:56 +02:00
Romain Bignon
64f0b50d13 correctly set when a message is new 2010-05-27 14:34:47 +02:00
Romain Bignon
2f297530a8 new Message attribute 'is_html' 2010-04-12 13:45:33 +02:00
Romain Bignon
f3a017cb01 [aum] ICapMessages.iter_[new_]messages() implemented 2010-04-11 11:48:59 +02:00
Romain Bignon
76c4622dc3 [dlfp] ICapMessagesReply.post_reply() implemented 2010-04-10 17:14:59 +02:00
Romain Bignon
56fea28640 split module loader in ModulesLoader and BackendsConfig classes 2010-04-06 21:17:51 +02:00
Romain Bignon
d59da7c030 fix sent mails 2010-04-04 14:35:22 +02:00
Romain Bignon
8a32f75c0a works even if html5lib is missing 2010-03-31 00:48:30 +02:00
Romain Bignon
812c597f34 minor fixes 2010-03-27 11:42:54 +01:00
Christophe Benz
b08db0035e WIP: updatable 2010-03-26 20:14:10 +01:00
Christophe Benz
df27572d5b add __str__ to Message 2010-03-19 17:10:51 +01:00
Christophe Benz
d699e307dd use lower_case_with_underscores instead of mixedCase for methods (PEP 8) 2010-03-11 15:13:17 +01:00
Christophe Benz
e4846ff2a4 no API break 2010-03-11 11:49:27 +01:00
Christophe Benz
9cb692a888 use iterators 2010-03-11 11:37:54 +01:00
Romain Bignon
7cdf5060ae fixed ICapMessage capability 2010-03-08 17:44:54 +01:00
Romain Bignon
b69ba38844 ICapMessages and ICapMessagesReply capabilities 2010-02-23 20:39:34 +01:00