Stephan Erb
ee5eb8b546
Try to handle incomplete HTTP. See #5401 . Please test.
...
Approach: Keep filling the receive buffer until we have found enough data to extract the first HTTP header and body
2009-11-12 21:23:10 +01:00
Stephan Erb
022003239d
Merge changes from default branch into refactoring branch
...
Hg: changed data/pixmaps/mic_active.png
2009-11-11 23:37:46 +01:00
Stephan Erb
af3af5bec8
Remove caps which have not been seen for three months from the db.
...
Thanks Asterix for the initial version of this patch!
2009-11-11 23:14:51 +01:00
Stephan Erb
8203211e74
Inject account object instead of account string into contact instances.
...
Each contact has now access to the account object instead of the account string.
2009-11-11 21:38:39 +01:00
Stephan Erb
ae9376ff63
Split the 'account sensitive' parts of the Contacts class and move them to an intermediate Contacts_New class.
...
The Contact class remains the public interface for contact handling. This is only a single step of a longer refactoring to empower the Account class.
2009-11-10 22:56:10 +01:00
red-agent
f457497bd1
Fixed the /audio and /video commands
2009-11-10 23:33:39 +02:00
red-agent
8a464786f4
Added /audio /video commands
2009-11-10 23:06:59 +02:00
Yann Leboulanger
e617b134b2
Alt-a -> Alt-d to open advanced action menu in (group)chat control. Fixes #5387
2009-11-10 21:50:11 +01:00
Stephan Erb
b4285302db
Make the GC_Contacts class 'account insensitive'. Instead, create an Account class which holds a GC_Contacts object.
...
The API has been preserved. For now the old Contacts() API has not been changed.
2009-11-10 21:08:25 +01:00
Stephan Erb
3ddc5ce78e
Use implicit delegation with __getattr__ instead of explicit delegation via method calls
2009-11-10 19:26:17 +01:00
Stephan Erb
2c296f3fe0
Create a GC_Contacts() class and move groupchat related behavior to it.
...
This is similar to what has been done with the MetacontactManager
2009-11-10 19:05:47 +01:00
Stephan Erb
ba9ef8301b
Remove superfluous clear_contacts method
2009-11-09 23:03:16 +01:00
Stephan Erb
004619f99e
Work around a reported NoneType exception.
2009-11-09 22:03:14 +01:00
Stephan Erb
d5ac527f84
Filter duplicate groups centrally.
2009-11-09 21:51:43 +01:00
Stephan Erb
cec93b6135
Push method to check if a specific ClientCaps supports a feature down to the caps module.
...
Public interfaces stay the same.
2009-11-09 21:26:56 +01:00
Yann Leboulanger
d70b74e6b6
[Gotham48] add nice icons to toggle audio / video
2009-11-08 10:08:15 +01:00
Yann Leboulanger
8f2120371b
update correctly self_contact Contact instance and roster row when we use an anonymous account (our jid changes in this case). Fixes #5370
2009-11-07 12:37:16 +01:00
Yann Leboulanger
e7a6dffe7b
no need of the jid parameter when we look for self contact iter
2009-11-07 09:34:23 +01:00
Yann Leboulanger
4bf3be4665
don't remove a _control when we try to rename it to the same name. Fixes #5346
2009-11-06 20:51:16 +01:00
Yann Leboulanger
11f01f1c1c
fix traceback when disconnecting from BOSH.
2009-11-06 17:58:39 +01:00
Yann Leboulanger
697d2a7324
fix BOSH connection with ejabberd. Fixes #5401
2009-11-06 17:58:14 +01:00
Yann Leboulanger
2061dd2118
fix receiving long messages in several parts with BOSH. see #5401
2009-11-12 22:13:11 +01:00
Yann Leboulanger
ae9f7ca410
prevent a traceback when we disconnect a zeroconf socket wil a message attribute. Fixes #5049
2009-11-12 21:42:20 +01:00
Yann Leboulanger
bf46c5dd12
use correct color for links in received XHTML messages. Fixes #5411
2009-11-06 08:19:32 +01:00
Yann Leboulanger
ea5429b248
fix XEP-202 implementation, child element must be <time>, not <query>. Fixes #5412
2009-11-06 08:11:07 +01:00
Yann Leboulanger
dec49976c4
Use a separate label in RIE dialog instead of a stock button. This way we can change label easily.
2009-11-05 22:20:45 +01:00
Stephan Erb
17af7902e4
Make it explicit whether an ordinary Contact, a Self Contact or a Not-In-Roster Contact is created.
2009-11-05 22:16:38 +01:00
Stephan Erb
f297aa0a11
Make methods of MetacontactManager private if those are only used internally
2009-11-05 20:09:26 +01:00
Yann Leboulanger
4743d224fd
fix sending message to several contacts (in this case we cannot get a contact instance as there are several jids in one. Fixes #5408
2009-11-05 19:44:01 +01:00
Stephan Erb
0abb1dfd20
Extract class: MetacontactManager from Contacts
...
For easy migration, interface is still preserved.
2009-11-05 19:43:25 +01:00
Yann Leboulanger
eb32680a91
fix caps query verification.
2009-11-05 19:24:27 +01:00
Yann Leboulanger
c8cc5be366
don't print libasyncns warning on stdout. Fixes #5407
2009-11-05 19:14:19 +01:00
Yann Leboulanger
32309d2a30
[marcin.bachry] disconnect once proxy has been tested. Fixes #5409
2009-11-05 19:11:31 +01:00
Stephan Erb
7829e7d40c
Removed unused module 'meta.py'
2009-11-05 17:05:13 +01:00
Stephan Erb
8a127b4e4d
Several small bugfixes: Add missing accout parameter to constructors.
2009-11-05 16:53:30 +01:00
Stephan Erb
89b1c6a7df
Move method close to data.
...
gajim.contacts.contact_from_gc_contact(gc_contact) is now gc_contact.as_contact()
2009-11-05 16:25:13 +01:00
Stephan Erb
dec25246df
Missing bits of the last commit (add account parameter to contact constructor)
2009-11-05 16:22:21 +01:00
Stephan Erb
06129f45ef
Let contact instances know their corresponding account.
...
contact.account and gc_contact.account contains the account name of the owning account. There is still code around in many placed which tries to workaround this missing information. Such code has to be migrated on per-need basis.
2009-11-05 15:57:43 +01:00
Stephan Erb
dce2ea58b3
Merge local changes with default.
2009-11-05 09:11:15 +01:00
Stephan Erb
3157cf0b1b
Allow multiple event handlers for a single Interface event.
...
We can use that until the plugin branch is available.
2009-11-05 08:53:19 +01:00
Yann Leboulanger
1a76b72b58
fix bosh url parsing (wrong regex replaced by urlparse.urlsplit() funxtion)
2009-11-05 08:50:21 +01:00
Stephan Erb
addaaa9242
Fix regex used in urisplit. It failed to split the host:port part.
2009-11-04 23:46:16 +01:00
Stephan Erb
c1cbc07645
Check for empty caps values and not just for None. See #5399
...
This prevents our caps cache from getting filled with invalid caps values. Furtheremore, NullClientCaps has been saveguarded so that it won't fail for people with already tainted caches.
2009-11-04 23:05:20 +01:00
Yann Leboulanger
b2a4c92e7a
better error handling
2009-11-04 22:06:45 +01:00
Yann Leboulanger
2aef55ad2a
better URI splitting code. see #5400 , #5401
2009-11-04 21:56:33 +01:00
Yann Leboulanger
4343d706a0
use default port for bosh proxy when none is provided. Fixes #5400 , #5401
2009-11-04 21:17:57 +01:00
Yann Leboulanger
124483ea49
prevent traceback. Fixes #5402
2009-11-04 20:37:22 +01:00
Stephan Erb
e1ccec089c
Add missing file
2009-11-03 23:37:11 +01:00
Stephan Erb
3a98a4170c
Move Interface() god class from gajim.py to gui_interface.py.
2009-11-03 22:14:19 +01:00
red-agent
0e38897445
Minor refactoring
2009-11-03 10:14:23 +02:00
red-agent
aae1dd6c38
Fixed an issue with the bare command prefix
2009-11-02 17:42:00 +02:00
Yann Leboulanger
d19df32c16
reorder imports in history_manager so that it can bu run. Fixes #5391
2009-11-02 06:59:56 +01:00
Yann Leboulanger
cb1fcc8cf8
update ft proxies list
2009-11-01 16:50:27 +01:00
Yann Leboulanger
ea973ddc2e
fix exception handling in command system
2009-11-01 13:50:34 +01:00
Yann Leboulanger
a75fba495b
better error message
2009-11-01 12:40:29 +01:00
Yann Leboulanger
6914546f2b
merge backout branch
2009-11-01 12:15:41 +01:00
Yann Leboulanger
21ffce890c
Backed out changeset f169c518cd8d
...
sqlite with ? doesn't work as expected
2009-11-01 12:14:42 +01:00
Yann Leboulanger
e9264abb8a
fix variable name
2009-11-01 09:52:33 +01:00
Yann Leboulanger
b0712e1774
replace all %d / %s things in SQL queries by ? for security reasons
2009-10-31 23:57:14 +01:00
Yann Leboulanger
d5351f6328
ignore unknown show types when we receive strange stanza.
2009-10-31 23:22:12 +01:00
Yann Leboulanger
48c82ae7fa
[Mattj] improve join groupchat behaviour. Fixes #5383
2009-10-31 19:35:46 +01:00
Yann Leboulanger
e10ff2c907
fix typo in a string
2009-10-31 19:15:18 +01:00
Yann Leboulanger
4ae64ff6e6
ability to configure out/inmsgtxt color in preference window. Fixes #5372
2009-10-31 19:03:03 +01:00
Stephan Erb
a9f5bb59d7
Merge changes from default branch into refactoring branch
2009-10-31 17:25:47 +01:00
Stephan Erb
47700e67da
Rename CacheItem.update to CacheItem.set_and_store as this seems more intense giving.
2009-10-31 09:14:55 +01:00
Stephan Erb
99e8487db9
Move compute_caps_hash from helpers to caps module.
2009-10-30 23:55:03 +01:00
Stephan Erb
47f875a4bc
Move CapsCache global from gajim.capscache to caps.capscache.
2009-10-30 23:01:25 +01:00
Yann Leboulanger
66deb15bad
fix variable name. Fixes #5379
2009-10-30 20:04:20 +01:00
Yann Leboulanger
c91da54c9c
remove hack I did for #5366 , It was most probably due to #5375 . see #5366 , #5375
2009-10-30 09:51:16 +01:00
Yann Leboulanger
bf9c6fb6a1
prevent traceback when changing resource of a control when there is no event for the account at all. Fixes #5375
2009-10-30 09:44:40 +01:00
Yann Leboulanger
5962494a9e
connect some missing handlers in chat control context menu. Fixes #5369
2009-10-29 16:46:36 +01:00
Yann Leboulanger
b682cc1791
use correct function for plural forms translation
2009-10-29 15:00:48 +01:00
Yann Leboulanger
fcafab60a7
merge jingle branch to default branche
2009-10-29 11:55:05 +01:00
Yann Leboulanger
f550144530
switch from gtk.Tooltips to gtk.Tooltip. Fixes #3471
2009-10-29 11:35:22 +01:00
Thibaut GIRKA
1c33d42158
Merge default to jingle
2009-10-29 10:19:58 +01:00
Thibaut GIRKA
7ae959dbba
Avoid insane recursion
2009-10-29 10:08:22 +01:00
Stephan Erb
bd714f66fc
Move common part of Contact and GC_Contact into a new CommonContact class.
...
The CommonClass helps to spot easily where GC_Contacts and Contacts differ. This is just the first step a potential refactoring in this area.
2009-10-28 23:37:40 +01:00
Yann Leboulanger
8e98b3954b
fix traceback with bash completion
2009-10-28 22:15:46 +01:00
Yann Leboulanger
d6f4241102
prevent a traceback which happen with obscure reasons. Fixes #5366
2009-10-28 20:03:45 +01:00
Yann Leboulanger
8ddd6a298b
[MattJ] re-fix /join command. already done in [8116020da28c]
2009-10-28 15:43:05 +01:00
Yann Leboulanger
7ae146e0e8
don't try to add an id to all outgoing messages. It's useless. Fixes #5355
2009-10-28 13:54:58 +01:00
Stephan Erb
6f71efdc47
Add missing local variable in resource submenu builder
2009-10-28 13:46:41 +01:00
Yann Leboulanger
5716ba5fd5
remove some deprecated iconsets. Fixes #5284
2009-10-28 13:20:27 +01:00
Yann Leboulanger
3f629341f6
call some upgrade config function that were not in 0.12.5 and are needed for 0.13
2009-10-28 12:38:22 +01:00
Yann Leboulanger
90fd7f6e68
[louizatakk] better bash completion. Fixes #5353
2009-10-28 12:19:20 +01:00
Yann Leboulanger
31d2bcbe7d
remove the possibility to configure systray if module is not available. Fixes #5345
2009-10-28 11:11:55 +01:00
Yann Leboulanger
52c788795a
we can now drop in the middle of a metacontact. Fixes #4804
2009-10-28 10:58:43 +01:00
Stephan Erb
976175e04c
Work around potential NoneType in obscure function _is_buggy_gajim()'
2009-10-27 23:30:08 +01:00
Stephan Erb
5894ce5341
Merge changes from default branch into refactoring branch
2009-10-27 23:18:21 +01:00
Stephan Erb
213fd5a8ed
Update a few outdated comments.
2009-10-27 22:48:47 +01:00
Stephan Erb
33fe53ff7d
Swtich from old to new caps API.
...
Now we do:
contact.supports(feauture) instead of gajim.capscache.is_supported(contact, feature)
2009-10-27 22:41:39 +01:00
Stephan Erb
c7ff97703f
Redistribute responsibility: Let contact instances check if features are supported
2009-10-27 20:31:09 +01:00
Yann Leboulanger
5698327831
[Stepan Kasal] fix italic detection with //. Fixes #4217
2009-10-27 19:36:36 +01:00
Yann Leboulanger
3bf4420ce3
rename roster_contact_context_menu.glade to contact_context_menu.glade
2009-10-27 19:02:14 +01:00
Yann Leboulanger
5a51f09491
merge roster_contact_context_menu.glade, chat_control_popup_menu.glade and zeroconf_contact_context_menu.glade
2009-10-27 18:58:27 +01:00
Yann Leboulanger
134eb7f83a
move and refactore some menu function from roster_window.py to gui_menu_builder.py
2009-10-27 10:39:40 +01:00
Yann Leboulanger
fea5e09200
fix name of variable (window -> dialog) Fixes #5360
2009-10-26 19:56:42 +01:00
Stephan Erb
3295b08b26
Two small caps enhancements.
...
* Rename EntityCapabilities to ClientCaps as this seems more intense giving.
* Add ability to blacklist features where we cannot savely assume that a client, which did not advertise caps, supports them
2009-10-26 19:20:16 +01:00
Stephan Erb
346953fd93
Duplicate 'supports' feature for GC_CONTACTS. TODO: Unify Contacts and GC_Contacts
2009-10-25 23:58:02 +01:00
Stephan Erb
700665151c
Implement 'supports' on contact instances.
...
Usage:
if contact.supports(NS_E2E):
....
2009-10-25 23:56:14 +01:00