Commit Graph

2654 Commits

Author SHA1 Message Date
Yann Leboulanger 7055eec326 fix typo 2008-10-16 18:40:00 +00:00
Yann Leboulanger 44277d6c40 prevent traceback. Fixes #4319 2008-10-16 17:19:22 +00:00
Yann Leboulanger 7d3bff5b58 update Contact instance in privateChatControl. see #4292 2008-10-12 11:20:35 +00:00
Yann Leboulanger 158538b81c [thorstenp] rename some var to not hide builts-in functions (list -> list_, ...) 2008-10-11 10:22:04 +00:00
Yann Leboulanger fd54e68e6d [thorstenp] some fixes with type() -> isinstance() 2008-10-11 10:06:49 +00:00
Yann Leboulanger 992e90208e [thorstenp] use != instead of <> 2008-10-11 10:02:49 +00:00
Yann Leboulanger 196dd7e30a [thorstenp] use isinstance rather than type(x) == y. use sorted() 2008-10-11 09:59:52 +00:00
Yann Leboulanger 00543277e4 [thorstenp] replace ` with repr 2008-10-11 09:51:27 +00:00
Yann Leboulanger 2ffad66473 [thorstenp] replace reduce instances 2008-10-11 09:49:30 +00:00
Yann Leboulanger 73aee40542 [thorstenp] replace none equality test with identity test 2008-10-11 09:44:12 +00:00
Yann Leboulanger ed748fdda3 [thorstenp] replace list with tuple in for and if 2008-10-11 09:42:59 +00:00
Yann Leboulanger 567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger 84e717c8df [thorstenp] use startswith and endswith instead of array indices on strings 2008-10-11 09:32:59 +00:00
Yann Leboulanger 6cc8204319 [thorstenp] replace if statement with dict.get() 2008-10-11 09:31:48 +00:00
Yann Leboulanger 9262133315 reconnect correctly when you were conencted with plain connection. Fixes #4390 2008-10-10 18:03:25 +00:00
Yann Leboulanger 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
Yann Leboulanger 96dd7b8ba7 revert [10494]. see #4388 2008-10-07 15:09:39 +00:00
Yann Leboulanger 46e958902f start xmpp ping after we received the roster. Fixes #4388 2008-10-07 13:59:42 +00:00
Yann Leboulanger e0a7fb8966 don't create None sub-option. Fixes #4379 2008-10-05 21:11:40 +00:00
Yann Leboulanger feab799c3e auto-create per_option config when trying to write in a non-existing one. Fixes #4370 2008-10-04 10:20:14 +00:00
Yann Leboulanger 349f8bd276 really remove avatar from roster when a contact removes his avatar. Fixes #4060 2008-10-01 16:07:58 +00:00
Yann Leboulanger a36edae2f6 prevent traceback when removing an inexistant session. Fixes #1288 2008-09-30 10:22:55 +00:00
Yann Leboulanger 7e5b9ab20d reply to XEP-0184 receipt requests in pm too. see #4339 2008-09-27 18:04:29 +00:00
Yann Leboulanger 32b583986f [Jelmer Vernooij] Kerberos (GSSAPI) SASL authentication mechanism added 2008-09-27 14:59:12 +00:00
Yann Leboulanger 3d46bf0b6e [dwd] fix reconnection when we get wrong XML with undeclared namespaces. Fixes #3083 2008-09-27 14:26:50 +00:00
Yann Leboulanger c797a14b8c fix listing and leaving groupchats from adhoc commands. Fixes #4344 2008-09-26 17:41:07 +00:00
Yann Leboulanger 22cc993fa7 ability to sort by status in roster and in muc separatly. Fixes #3823 2008-09-26 15:22:16 +00:00
Yann Leboulanger e236382f3d handle XEP-0203 (Delayed Delivery) and use it when forwarding unread messages via adhoc commands. Fixes #4347 2008-09-26 11:11:38 +00:00
Yann Leboulanger 10af522af6 disable proxy resolution. See #4299. 2008-09-23 12:43:59 +00:00
Yann Leboulanger 363277cc69 allow all features if a contact has no resource until we fall back to disco query. Fixes #4327 2008-09-22 09:35:19 +00:00
Yann Leboulanger c71269c9ec remove event for full jid and bar jid when we scroll conversation window. Fixes #4243 2008-09-17 19:16:08 +00:00
Yann Leboulanger 6df6e9ddf1 coding standards 2008-09-17 19:04:17 +00:00
Yann Leboulanger 3e2f9fcbec prevent affiliatio spoofing by checking namespace. Fixes #4323 2008-09-16 08:30:27 +00:00
Yann Leboulanger 8d3c1c59ad decode string before splitting it. 2008-09-08 18:36:15 +00:00
Yann Leboulanger 3b4875e38e [avm] always encode data in utf-8 in database. see #4254 2008-09-08 17:37:44 +00:00
Yann Leboulanger a4bab043b9 [avm] Gzip don't support unicode strings. Fixes #4254 2008-09-08 16:31:02 +00:00
Yann Leboulanger 5f2e4c818c [Alex V. Myltsev] idle.c: cleanup.
Replace METH_VARARGS with METH_NOARGS, discard win32 ifdefs (it's no more compiled on win32 anyway).
2008-09-08 12:00:27 +00:00
js f260d83c80 Fix #4290 2008-09-05 19:09:01 +00:00
Yann Leboulanger 238ee10039 prevent traceback when connection is lost while waiting for user to accept plain connection or ssl certificate. Fixes #4285 2008-09-05 18:24:51 +00:00
Yann Leboulanger 66f8bab7d6 show number of participants in groupchats. fixes #3418 2008-09-02 07:00:35 +00:00
tomk a7c36048b9 - renamed src/common/nslookup.py to resolver.py
- refactored resolver code and added asynchronous resolver based on patch by Damien Thebault[1]
  * Uses libasyncns-python[2]. If it's not available, old nslookup resolver is used)
  * works for SRV requests only at the moment

[1] https://www.lagaule.org/pipermail/gajim-devel/2008-July/000460.html
[2] https://code.launchpad.net/libasyncns-python
2008-08-31 23:40:06 +00:00
Yann Leboulanger c335a96199 correctly parse nslookup result. fixes #4194 2008-08-31 19:40:45 +00:00
Julien Pivotto 59b8506cf2 remove unsed tupples 2008-08-31 14:14:00 +00:00
Yann Leboulanger 1607000c5c revoke tune when disconnecting only for current account. fixes #4267 2008-08-31 13:40:53 +00:00
Yann Leboulanger ab694e09ee revert [10361]: doesn't work in a non-utf-8 environment 2008-08-31 12:24:45 +00:00
Yann Leboulanger 643e47175a get result of nslookup command using unicode. really fixes #4194 2008-08-31 11:53:54 +00:00
Yann Leboulanger b2e3c2cc72 fix missing import 2008-08-30 18:48:06 +00:00
Yann Leboulanger b5b27227ea fix parsing SRV result with idna names. Fixes #4194 2008-08-30 18:24:07 +00:00
Yann Leboulanger aa6c163506 check that connection is still active in all handlers. Fixes #4261, #4258 2008-08-30 17:14:27 +00:00
Brendan Taylor 5d6b60be68 fix GPG mysteriously turning on when you open a chat window 2008-08-30 02:50:10 +00:00
Brendan Taylor 32b56a2328 move most of is_loggable out of the session object. fixes #4103 2008-08-30 01:31:25 +00:00
Yann Leboulanger bcc39c4e1c ask to change nickname for a groupchat only once. Fixes #4250 2008-08-29 08:06:28 +00:00
Julien Pivotto 45122a3381 beter way to delete PEP when a user goes oflline 2008-08-28 22:43:28 +00:00
Julien Pivotto 1c2ce732b1 E2E dialogs
* String changes
* Improve SAS visibility
* Add ability to re-verify
* espace text and buttons
* Should fix #3468
2008-08-28 13:14:54 +00:00
Yann Leboulanger a0e9a0d905 handle correctly forwarded messages. fixes #4246 2008-08-28 12:24:31 +00:00
Julien Pivotto 269e5a31c7 hide pep-stuffs if a contact goes offline. fix #4206 2008-08-28 11:43:10 +00:00
Yann Leboulanger 9618bb77a4 fix FT proxy testing. We needed a receiver to connect to proxy to really test it 2008-08-27 13:11:46 +00:00
Yann Leboulanger 95b6855aa3 remove test thing 2008-08-27 10:09:38 +00:00
Yann Leboulanger 1e8e0f6067 no need of GUI classes in connection_handlers.py, socks5.py and secrets.py 2008-08-27 07:53:12 +00:00
Yann Leboulanger f63dcff5d3 prevent a traceback. Fixes #4236 2008-08-26 10:07:53 +00:00
Julien Pivotto 4df776851f Valid IANI schemes are highlighted. Fix #4229 2008-08-25 21:47:23 +00:00
Yann Leboulanger 6f3cca4669 [Jeff Bailes] better strings 2008-08-25 10:06:22 +00:00
Stephan Erb 433fcafc52 Correctly sort metacontact data if one of the jids is a transport and not in our roster. Fixes #4208, #4195. 2008-08-19 21:41:43 +00:00
tomk ed7dd84cfe fixed zeroconf to work with refactored dispatcher 2008-08-18 14:34:09 +00:00
tomk 2712786383 Corrected return values of zeroconf client in order to return true-evaluable values. related to #4051 2008-08-18 14:20:03 +00:00
tomk acdf4ff143 improved disconnect handling, added comments, fixed minor bugs 2008-08-17 22:57:48 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto b58dfd6a59 Prevent many traceback due to headers and my last commit (it's late,
sorry)
2008-08-15 03:39:27 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
tomk a76c173816 - improved SSL connections with BOSH - SSL over HTTP proxy is possible now,
Gajim will do HTTP CONNECT on proxy to reach the BOSH Conn manager and try
  to estabilish TLS (same as what firefox do when approaching HTTPS server via
  proxy)
- moved proxy-connecting code to xmpp/proxy_connectors.py
- debugged SOCKS5 proxy code
- tested with Tigase server
2008-08-14 21:48:43 +00:00
Yann Leboulanger 37014a2ace don't remove label in dataforms if there is no. Fixes #4202 2008-08-14 17:51:14 +00:00
Yann Leboulanger 1b160115ec fix version name 2008-08-12 10:42:50 +00:00
Yann Leboulanger a5c2b1d3dd prepare sources for 0.12-alpha 2008-08-12 09:10:07 +00:00
Yann Leboulanger c619f59b84 show status of not in roster contacts in roster. Fixes #4144 2008-08-12 06:31:32 +00:00
Yann Leboulanger 7f908667a4 don't take into account keyid in error presence: it's our own signed message 2008-08-11 15:30:24 +00:00
Yann Leboulanger bda1d9cd56 fix typo. Now caps are correctly reset when a contact goes offline. Fixes #4181 2008-08-11 08:01:03 +00:00
Yann Leboulanger 3c7e7f5052 idle.c is GPLv3 too. Fixed #4187 2008-08-10 20:28:22 +00:00
js 5638c568e6 Fix a typo. 2008-08-09 16:40:48 +00:00
tomk 4504861084 fixed handling of SSL errors 2008-08-09 12:16:42 +00:00
Yann Leboulanger c7d33bb68e register Disconnect handler soon enough 2008-08-06 21:37:56 +00:00
Stephan Erb f5be05a14a Coding style 2008-08-06 20:19:16 +00:00
tomk cbfa9d97df - TLS classes refactored - NonBlockingTLS is now plugged to NonBlockingTCP and
derived (was plugged to NonBlockingClient which made it unusable for BOSH)
- Fixed HTTP CONNECT proxy socket
- Implemented workaround for the bug with insecure-connection warning dialog
  (unfortunately, this is not over - I just forbid the transport to send
  BOSH empty bodies until auth module is plugged, which is wrong and will
  break if user will wait more than "inactivity" (usualy thirty) seconds
  before clicking the dialog.
  This workaround works with ejb and opf, and also breaks connection with
  both of them if delay is too long.
- Implemented basic TLS over BOSH. It works only with OPF and poorly.
2008-08-05 23:52:35 +00:00
js 59fb1857ef It does not need to be a message. 2008-08-05 22:03:31 +00:00
Yann Leboulanger d6f20965a9 update correctly self contact when we get PEP info. fixes #4145 2008-08-04 22:44:48 +00:00
Yann Leboulanger e13c472e2c implement legacy pep protocol (v1.3). Fixes #4146 2008-08-04 22:06:54 +00:00
Yann Leboulanger e22c6e9697 fix printing of sent zeroconf messages. fixes #4051 2008-08-04 10:54:56 +00:00
Yann Leboulanger 2b896152a2 make back strings translatable 2008-08-04 08:07:07 +00:00
js 9bb8f8c5e6 Make "This message is encrypted" bodies consistent. 2008-08-03 23:01:43 +00:00
Yann Leboulanger 0317d93561 notify GUI about ERROR presences. Fixes #3667 2008-08-03 19:11:03 +00:00
Brendan Taylor 615ed1be06 attach an unencrypted explanatory body to XEP-0200 encrypted messages 2008-08-03 16:46:27 +00:00
Yann Leboulanger 4eebf0e036 fix some translated strings 2008-08-01 13:03:23 +00:00
Yann Leboulanger 409a1c315a prevent a traceback. fixes #4169 2008-08-01 10:27:38 +00:00
Yann Leboulanger fa2d983354 better transltion strings. see #4166 2008-08-01 09:30:36 +00:00
Brendan Taylor 798c412c85 handle XEP-0200 encrypted messages with extra unencrypted bodies 2008-08-01 00:39:40 +00:00
Yann Leboulanger 673052f1b8 handle disconnection while insecure connetion dialog is opened. fixes #4138 2008-07-30 15:43:53 +00:00
Yann Leboulanger d030cd8b03 prevent sending invalid XML chars in chat / groupchat and status. Fixes #3296 2008-07-30 12:21:47 +00:00
Yann Leboulanger b3dd46acae don't remove field in the loop that iter on them. 2008-07-30 07:46:05 +00:00
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
js 993d0d8609 Revert r10064 and to it the right way™. 2008-07-29 19:42:31 +00:00
js 981dca2b6b Remove get_uf_{mood,activity} as nobody used them.
Didn't notice them and implemented something like that myself.
2008-07-29 19:27:16 +00:00
js a226760275 Make moods better translatable. 2008-07-29 19:02:57 +00:00
Yann Leboulanger 8b1746140e implement a get_purged() function in dataforms to send minimalist dataforms when we send a reply. fixes #4132 2008-07-29 15:27:00 +00:00
Yann Leboulanger 64b73530c4 prevent traceback, fixed #4121 2008-07-29 07:36:44 +00:00
Yann Leboulanger 4ebee785ff don't require python2.5 2008-07-29 07:11:39 +00:00
Yann Leboulanger 676b91731d restore autoconnect_as option. Correctly use 80 char width 2008-07-29 06:42:34 +00:00
Yann Leboulanger 49ea574c7d typo 2008-07-29 06:40:09 +00:00
Yann Leboulanger 1fd2c5f050 add NS_TUNE, ACTIVITY and NICK to features list 2008-07-29 06:17:35 +00:00
Yann Leboulanger e21b1dcb37 remove publish_mood, publish_activity and publish_nick options. 2008-07-29 06:15:41 +00:00
js c078f11fe0 Show activity in roster. 2008-07-29 02:32:57 +00:00
js 6dfa9c7e35 * Fix a TB with unknown moods
* Add the 'thoughtful' mood in the Gajim namespace (trying to get it in
  the XEP!)
2008-07-29 00:11:44 +00:00
js c06c258b2f Show activity in conversation window. 2008-07-28 22:33:20 +00:00
js f7d8631a5c New activity dialog. 2008-07-28 20:57:56 +00:00
tomk 56e0ad7a96 basic proxy authentication for BOSH connections implemented 2008-07-28 18:53:00 +00:00
js dc8b56c9ed Some users don't want their status to be restored. Make it an option. 2008-07-28 16:36:17 +00:00
Yann Leboulanger cd6742a9e4 prevent TB when connection is lost. fixes #4112 2008-07-28 12:17:33 +00:00
tomk af3f1a9dd4 - implemented BOSH key sequencing, acknowledgements
- improved HTTP persistent connections
- added alarm-unregister method to idlequeue
- extended proxy managing dialog for BOSH proxy
2008-07-26 22:42:40 +00:00
Brendan Taylor abbdf8d5c9 attach resource to sessions so that only the relevant sessions are terminated when a contact goes offline 2008-07-26 05:28:15 +00:00
Brendan Taylor 094052eb7c fix some issues with the difference between Contacts and GC_Contacts 2008-07-26 01:16:24 +00:00
js d8bd70c93b Show tunes in roster. 2008-07-25 14:11:14 +00:00
js d694b8a6df Show own mood in account row. 2008-07-25 01:10:14 +00:00
js 0d6394b0ca * Better rendering of mood in roster.
(Only takes space if needed now)
* Possibility to disable display of mood in roster from preferences.
  (Also works on the fly with the new rendering method)
* Minor improvements in the translation of the moods to German.
2008-07-25 00:43:01 +00:00
js aec24f6e21 Show mood in roster & coding style. 2008-07-24 23:53:56 +00:00
js 87d5904384 Possibility to disable ESessions (not only autonegotiation) per account 2008-07-24 22:13:59 +00:00
js ffd0bb8b0b If there are no per-contact settings, return defaults. 2008-07-24 22:13:13 +00:00
js ea26f8eabc If no resource is left, we shouldn't have caps left either! 2008-07-23 18:38:52 +00:00
js 40112aa128 Handle it correctly if caps were removed.
YES, it CAN happen that we had caps and now got a presence without!
And that WILL happen very often, for example if the other end signs
off!
2008-07-23 18:28:55 +00:00
js 00847d91bf Same for user mood.
Woohooo! This is the 10000st commit to Gajim! Let's have a party!! \o/
2008-07-22 23:41:07 +00:00
js 73d73404be Update tune in converstaion window. 2008-07-22 23:39:45 +00:00
js cc733a6cac Coding style. 2008-07-22 23:22:49 +00:00
js d46995ad8e 'None' is not a mood! 2008-07-22 21:43:19 +00:00
js c5e679a078 Show mood in chat window. 2008-07-22 21:08:52 +00:00
js 6239ae57c3 Remove rev keyword code again as this doesn't work. It's only updated
when the defs.py file is changed.
2008-07-21 22:55:03 +00:00
Brendan Taylor e5abe84484 correct dh prime (for real this time) 2008-07-21 19:55:27 +00:00
Brendan Taylor 758adfbaf3 fix esession caps condition 2008-07-21 19:55:16 +00:00
js 2cf1171124 Remove \n from distribution name. 2008-07-21 17:29:49 +00:00
Brendan Taylor 1d48ca648f corrected one of the dh primes 2008-07-21 15:14:16 +00:00
Brendan Taylor c9b2556c41 make esessions an optional caps feature 2008-07-20 15:54:05 +00:00
Brendan Taylor 90098b1e34 make esession autonegotiation option per-account and per-jid 2008-07-20 15:06:21 +00:00
js dd63bbe7d2 This does a better job :). 2008-07-20 14:48:08 +00:00
js 41e3b00dbe This should automatically include the revision in our version. 2008-07-20 14:44:08 +00:00
Brendan Taylor f11b5dd081 added option for esession autonegotiation
added option for modp groups to use in a negotiation
2008-07-19 20:42:03 +00:00
js f704701ba4 Support for displaying XEP-0184 receipts. 2008-07-18 20:24:34 +00:00
tomk a58618c843 persistent HTTP connections in BOSH roughly implemented, added hack for openfire incapability of after-SASL-stream-restart-response in BOSH, changed doubles quotes to single 2008-07-18 00:34:49 +00:00
js 1fabaa8844 Keep last status on autoconnect. 2008-07-16 15:50:51 +00:00
js 4dbf5d9c0e Another part of a fix for #4098.
I'm not sure how fatal if would be if the idle queue of NS lookups
hangs, but this fix won't hurt anyway, so I better fix it.
2008-07-16 12:58:52 +00:00
js 3bd76e406a Partially fix #4098.
This is, however, only a half fix as this fixes that it fails when
there's None in waiting_descriptors[2], but actually, there never
should be None, so I have to investigate why there was none.

This patch is, however, correct and needed and the other queues also
have that check. It's just that I also need to fix the reason for
the None in the queue.
2008-07-15 23:23:31 +00:00
js 92e9a51fc5 D'oh! 2008-07-15 14:39:54 +00:00
js 151e7af63e Proper checking for XEP-0085, with workaround for the caps missing
problem. Same here, remove check to notexistant once we have fallback
to disco.
2008-07-15 13:51:20 +00:00
Brendan Taylor 15567aa113 fix encrypted/unencrypted notifications in PM 2008-07-14 23:46:22 +00:00
Brendan Taylor 814c9c118a XEP-0116 support discovery 2008-07-14 00:26:05 +00:00
Brendan Taylor c24041a0df moved receipt handling after XEP 0200 decryption 2008-07-14 00:25:53 +00:00
tomk cecce21c53 added hack for Openfire that doesn\'t add xmlns to child iqs of sent body stanzas 2008-07-13 23:10:11 +00:00
tomk 3d860f40a6 BOSHClient transformed to NonBlockingBOSH transport - it's easier to maintain more connections from below, implemented handling of non-persistent HTTP connections - it runs with ejabberd, improved NonBlockingTransport interface, minor changes in BOSHDispatcher 2008-07-13 22:22:58 +00:00
js 388fd7127a Not logging encrypted sessions by default is not a good idea.
We can assume the user's PC is safe, otherwise encryption won't help
anyway as the key could be stolen. If the user is too paranoid, he can
still disable it and thus also force the other end to stop logging.
2008-07-11 17:54:02 +00:00
js e67048bdfd If we receive an error PEP packet, don't treat it as incoming PEP event 2008-07-11 12:34:43 +00:00
Yann Leboulanger 4db9685849 add mrim transport icons. Fixes #4078 2008-07-10 12:18:26 +00:00
Stephan Erb c99048b02f Fix two caps related tracebacks:
Quick fix: What does not exist cannot support anything. Fixes #4031.
Fix variable referencing. Fixes #4076.
2008-07-08 19:15:54 +00:00
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