Commit graph

3174 commits

Author SHA1 Message Date
Stephan Erb
fca6bdbbc4 [Florob] Improved URL matching.
We don't match all valid URIs like blub:blaa but include common used (non)-urls like www.google.de
2008-07-08 18:49:51 +00:00
tomk
e1899f34dc new BOSHDispatcher (in dispatcher_nb), improved BOSHClient class, minor changes in other xmpp modules 2008-07-07 23:04:10 +00:00
Stephan Erb
eda061e15d Don't crash when we receive contacts that have a group tag assigned multiple times.
Remove some usage of has_key() in the contacts module. It is a bit slower (method overhead) and will be deprecated soon.
In roster_window. make a small if-clause more pythonic.
2008-07-06 21:35:19 +00:00
Yann Leboulanger
2f857870f3 add caps_* arguments in create_contact 2008-07-05 19:16:04 +00:00
Yann Leboulanger
4c33f4d478 typo 2008-07-05 19:08:15 +00:00
Yann Leboulanger
74c53da32a fix arguments order in contacts.py, some coding standards. should fix #4081 2008-07-05 19:04:27 +00:00
Yann Leboulanger
3ad1f9afed remove useless print 2008-07-05 18:25:39 +00:00
Yann Leboulanger
32bb251381 typo 2008-07-05 18:25:09 +00:00
Yann Leboulanger
1e636e7824 warn before connecting without PyOpenSSL. fixes #4065 2008-07-05 18:07:32 +00:00
Stephan Erb
0671e6c865 Correctly count metacontacts in non merged accounts mode if we have metacontacts over several accounts. 2008-07-05 06:33:49 +00:00
Stephan Erb
215fdc964a Count metacontacts only once.
Remove timing information for roster drawing.
2008-07-04 21:29:46 +00:00
Yann Leboulanger
2fd4ea7637 keep caps info when we create a contact instance from groupchat_contact instance 2008-07-03 21:43:28 +00:00
Yann Leboulanger
f379d06d2c fix connection for ipv6 2008-07-03 06:26:39 +00:00
tomk
952e4a1569 moved bosh code from client_nb.py to bosh.py, replaced debug logging with debug.py by logging in whole xmpppy (debug.py is now unused) 2008-07-02 23:29:10 +00:00
js
9ce8e28c0a Fix missing ). 2008-07-02 12:27:12 +00:00
js
46913c541b XEP-0184 uses the new caps-checking way now. 2008-07-02 10:48:15 +00:00
js
0405981b15 Added a function to check for specific features. This makes
implementing a later coming fallback to disco rather easy.
2008-07-02 09:20:49 +00:00
tomk
937bb01a69 moved TLS and SSL classes from transports_nb to new tls_nb module, fixed HTTP CONNECT proxy transport 2008-06-30 23:02:12 +00:00
tomk
f3820706fb - Refactored non-blocking transport and client classes - getaddrinfo is called
in Client now
- Added NonBlockingHttpBOSH transport (to tranports_nb) and BOSHClient
(to client_nb)
- Extended possible proxy types in configuration by "BOSH" proxy
- Rewrote NonBlockingTLS to invoke success callback only after successful TLS handshake is over (formerly, the TLS Plugin returned right after sending <starttls>)
2008-06-30 00:02:32 +00:00
Brendan Taylor
b490904454 make esession authentication warning less obtrusive 2008-06-29 04:39:29 +00:00
js
408d3b4ff6 Revert r9859 as this killed the stream.
This isn't an easy fix, we need to stop using expat in namespace aware
mode.
2008-06-29 01:40:49 +00:00
js
23cdc3fd6f Don't disconnect on unbound prefixes.
Fixes #3083. I can't believe this was unfixed for so long, as it's
really a rather easy fix.
2008-06-29 01:25:52 +00:00
Yann Leboulanger
7b5a692c3c correctly escape jids in caps 2008-06-27 15:19:00 +00:00
Yann Leboulanger
db09ad11d7 entity capabilities for groupchat contacts. fixes #4033 2008-06-27 15:07:15 +00:00
Brendan Taylor
e3613be1fa first pass at stripping out the one-tab-per-session code 2008-06-26 23:36:58 +00:00
Stephan Erb
2cd24aa8ae Do not update metacontacts when nothing has changed. Fixes sending metacontact info to server when we expand a groupchat. 2008-06-26 14:09:27 +00:00
Yann Leboulanger
a62328ecd3 remove duplicate function, simplify logic 2008-06-26 11:30:13 +00:00
Yann Leboulanger
371a38c91c increase xmpppy verbosity when we use -l gajim=DEBUG 2008-06-26 10:01:12 +00:00
Yann Leboulanger
9457c28a63 don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012 2008-06-25 09:25:43 +00:00
Yann Leboulanger
d2b5b31bde acknowledge privacy list set iqs as required by XEP-0016 2008-06-25 07:35:35 +00:00
Yann Leboulanger
16fc7508ae remove unused function 2008-06-25 07:13:42 +00:00
Yann Leboulanger
d4c8cb8b15 don't think connection to server failed when only first connection attempt failed when creating a new account 2008-06-25 06:56:03 +00:00
Brendan Taylor
d885e05500 don't send thread ids in message receipts unless there's a thread 2008-06-24 01:17:02 +00:00
Brendan Taylor
8b4627049b moved session negotiation handling from gajim.py to session.py 2008-06-21 19:12:47 +00:00
Yann Leboulanger
ef0b115710 quick fix for private messages until we support caps for them. see #4033 2008-06-20 06:34:24 +00:00
Yann Leboulanger
3d2e97d251 when we are disconnected from server, we then try to reconnect only with the type (tls, ssl, plain) that worked first time. Fixes #3896 2008-06-19 18:05:15 +00:00
tomk
65644ca13f added stub for new transports module plus basic test for it, testing code reorganized 2008-06-18 23:58:19 +00:00
js
9c75374da4 Use the namespace variable. Sorry, forgot to change that here. 2008-06-17 18:17:30 +00:00
js
abdd43e5eb Type in NS. 2008-06-17 18:13:23 +00:00
js
9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Yann Leboulanger
1d745c1c9d use SSLv23 method (it support SSLv2, v3 and TLSv1) instead of only TLSv1 method as some server (gmail) don't support TLSv1 method. fixes #3786 2008-06-16 14:12:59 +00:00
Stephan Erb
c5f7922e29 Two roster sort fixes.
* Change metacontact ordering. Fallback to priority only if two contacts have the same show, not the other way round.
 * Move contacts that just signed out to the bottom of the group, not to the top.
2008-06-15 23:03:51 +00:00
Jean-Marie Traissard
ca457a7ac2 groups :
-Use a method to get_shown_groups (possibly more work to do (special group attribute))
-Show contact only if contact.ask, not according to modified xep 0162 logic. (I don't get neither the xep
meaning, neither this modified logic, can you explain steve-e ?)
-Remove contact before we modify it req_sub(). Else we can't remove it because iter is not found.
-When removing a contact and we let him in see us (observer), manually set show to offline, so he is not set as
visible.
-Remove observer from observer group if we asked him auth (I mean before he answer). Xep 0162 say he is not an
observer then. Fix contact staying in observer group when we get auth later.
-Renaming groups seems fixed (it's an accident :p )

More work on group to follow
2008-06-15 21:48:13 +00:00
Yann Leboulanger
18d8f98f3c add "other" to all sub-activities and fix "Having an appointment" activity. Fixes #4019, #3981 2008-06-15 18:13:03 +00:00
Brendan Taylor
2b074aed41 pass the ChatControl around with printed_chat events 2008-06-14 16:49:48 +00:00
Brendan Taylor
964cb10163 hopefully fix the last of the get_control calls (fixes #4018) 2008-06-14 08:43:20 +00:00
Yann Leboulanger
1ebe587886 fix number of parameters to session.receives in zeroconf. Fixes #4015 2008-06-13 15:59:04 +00:00
Yann Leboulanger
e807c056d3 remove Z char (meaning UTC) in received timestamp. fixes #3796 2008-06-13 15:34:55 +00:00
Brendan Taylor
e4aa0de7f7 don't make submenus in the Actions menu if we've only got a zeroconf account and a normal account 2008-06-13 02:18:16 +00:00
tomk
16e274b9ec added test script for NonBlockingClient (test/test_client_nb.py) 2008-06-12 23:54:46 +00:00