Stephan Erb
47f875a4bc
Move CapsCache global from gajim.capscache to caps.capscache.
2009-10-30 23:01:25 +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
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
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
Yann Leboulanger
d408610425
copy list before iterating on it in case we modify it.
2009-07-21 00:13:55 +02:00
Yann Leboulanger
cd9eed6277
stupid me, calling .keys() on a dict ...
2009-07-20 23:51:17 +02:00
Yann Leboulanger
e40a3b6272
prevent traceback when we remove contacts in iter_contacts() loop.
2009-07-20 23:47:59 +02:00
Yann Leboulanger
15b3ba35b1
restore metacontct correctly when we connect to server and we already have contacts in roster (stored locally). Fixes #5156
2009-07-12 13:33:29 +02:00
Yann Leboulanger
8514e51675
factorize send_file action in chat / groupchat / private chat. see #3948
2009-04-07 17:07:04 +00:00
Yann Leboulanger
0cf86f5a8f
[Dicson] Fix meta contact order by DND. Fixes #4797 , #4779
2009-02-11 17:55:00 +00:00
Yann Leboulanger
e389e0b16b
[thorstenp] remove whitespace at eol
2008-12-03 21:56:12 +00:00
Stephan Erb
246e549012
Improved "is_groupchat" logic. Fixes #4413 .
2008-11-08 22:00:56 +00:00
Yann Leboulanger
66f8bab7d6
show number of participants in groupchats. fixes #3418
2008-09-02 07:00:35 +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
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
8bc9bc29ae
* Big headers review
...
* Remove some licencing problems
* To do: same for images
* See #4200
2008-08-15 03:20:23 +00:00
Stephan Erb
f5be05a14a
Coding style
2008-08-06 20:19:16 +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
Brendan Taylor
094052eb7c
fix some issues with the difference between Contacts and GC_Contacts
2008-07-26 01:16:24 +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
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
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
ef0b115710
quick fix for private messages until we support caps for them. see #4033
2008-06-20 06:34:24 +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
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
Jean-Marie Traissard
f9c981df5d
-Set General and Observer group directly in contact instance, instead of calculating it each time
...
-When creating self-contact contact instance, store it with group 'self_contact', so it never goes in General
-Make general group not be seen visible because of self contact even if self.regroup
-Remove the self contact instance itself too when WE deconnect or when IT deconnect, so we will
not see it as offline if refilling roster (regroup account for example)
2008-06-08 21:27:31 +00:00
Jean-Marie Traissard
9f613afd4f
Don't traceback when refiltering during the model.clear (has a bad account name).
...
Fixes #3893 .
2008-06-01 21:13:06 +00:00
Yann Leboulanger
a3827fe5d0
new XEP-0115 implementation (version 1.5)
2008-04-20 22:58:47 +00:00
Stephan Erb
4e6bd4ee8f
Port roster_window to gtk.TreeModelFilter.
...
Contacts are now online hidden when they connect/reconnect and not completely removed/readded. Should come with a great speed improvement for people with big rosters.
There are still a few known problems but non that should dalay this patch any longer. Related bugs will be tracked with 'modelfilter' keyword.
See #1201
2008-04-20 14:01:04 +00:00
Yann Leboulanger
f3665cd689
don't remove metacontact when we reconnect. fixes #3771
2008-04-01 23:13:10 +00:00
Jean-Marie Traissard
75983ff571
Some "jep" -> "xep"
2008-03-30 20:35:02 +00:00
Yann Leboulanger
13b6d75588
get gajim module where it is. fixes #3661
2008-01-06 12:12:24 +00:00
Yann Leboulanger
2aef21f026
[Elmar Hoffmann] prefer contacts on the same server as you in metacontacts. fixes #3649
2008-01-06 11:12:07 +00:00
Yann Leboulanger
19761f081f
[js & I] show pep info in account tooltip, fix a bug in create_contact()
2007-12-13 20:26:13 +00:00
Yann Leboulanger
a645006bf8
merge diff from trunk
2007-12-12 08:44:46 +00:00
Yann Leboulanger
ea24ee82e5
merge diff from trunk to pep branch
2007-08-09 15:39:18 +00:00
Piotr Gaczkowski
e3ef0821b3
Merge with trunk
2007-06-03 10:04:20 +00:00
Piotr Gaczkowski
19c5c70f80
Initial User Tune support
2007-04-01 09:02:04 +00:00
Piotr Gaczkowski
39f161fa6d
Version changed
2007-03-29 20:24:30 +00:00
Piotr Gaczkowski
06f43c1e2a
Mood and Activity shown in tooltips. Caps set properly
2007-03-29 19:40:50 +00:00
Piotr Gaczkowski
149b0fcdef
Buggy. Don\'t touch
2007-03-29 19:04:14 +00:00
Piotr Gaczkowski
512db7618b
Lame Mood and Activity support. Announcing caps.
2007-03-28 21:18:16 +00:00
Piotr Gaczkowski
e0c9b6309f
Third buggy commit
2007-03-25 22:47:04 +00:00
Yann Leboulanger
019f43fa38
when we compare 2 offline contacts, the one which has a status messages is shown above the one without. fixes #3010
2007-03-09 19:17:19 +00:00
Yann Leboulanger
9a3505a9e3
fix online / total transport count
2007-01-24 10:00:17 +00:00
Yann Leboulanger
7e11bf1172
do not count transport in global online / total users. fixes #2801
2006-12-26 13:40:01 +00:00
Yann Leboulanger
e8657b4fdb
do not count not in roster contacts in online / total users. see #2801
2006-12-26 13:33:09 +00:00
Yann Leboulanger
e4a6d895ee
do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691
2006-11-21 22:27:35 +00:00
Yann Leboulanger
40d298c231
don't count our jid in number of contacts, count transport only if show_transports_group is True, update transports row when a transport connects / disconnects. fixes #1728
2006-11-15 15:56:42 +00:00
Yann Leboulanger
f15305b7c6
[merzhin & asterix] show number of connecter / total contacts in account and group rows. fixes #1728
2006-11-15 10:44:27 +00:00
Yann Leboulanger
ac7bc2a229
[Brice Maron] ability to remove a group (and eventually contacts in this group too). fixes #485
2006-11-13 08:27:16 +00:00
Yann Leboulanger
fafa2d0c0a
show our server in roster when we get a message from it, and hide it if show_transports_group is False. Fixes #2568
2006-10-17 12:31:16 +00:00
Yann Leboulanger
8a45a73226
show in roster not in roster contacts. also fixes a TB when receiving messages from not in roster contacts.
2006-10-16 21:37:32 +00:00
Nikos Kouremenos
a1820a4ed5
fix logic for observers to work as XEP 0162 says
2006-10-15 13:23:05 +00:00
Yann Leboulanger
713d523344
fix wrong var name. fixes TBs
2006-10-10 17:25:26 +00:00
Jean-Marie Traissard
9f417b7396
syntax
2006-10-10 16:34:09 +00:00
Nikos Kouremenos
a1102880b9
intro is_hidden_from_roster and is_observer
2006-10-10 15:57:20 +00:00
Nikos Kouremenos
9002b3d293
put my email (and jid), not one of my JIDs
2006-09-28 11:31:25 +00:00
Yann Leboulanger
97420e6a7a
prevent TB when / in gc nicknames
2006-09-13 07:46:35 +00:00
Dimitur Kirov
335870646d
take on account priorities, which are <= 0
2006-07-14 07:13:59 +00:00
Dimitur Kirov
d8bf9f69a8
add two more possible statuses - #1945
2006-05-09 19:56:29 +00:00
Yann Leboulanger
d040cc13fc
be sure chat_control.contact is never None, even when server connection is brocken. Fixes #1878
2006-04-20 16:57:43 +00:00
Yann Leboulanger
fe2ec40ad7
new metacontacts JEP (not yet published) uses order instead of priority.
2006-04-11 20:16:33 +00:00
Yann Leboulanger
1d496233f8
update comment
2006-04-10 09:04:14 +00:00
Yann Leboulanger
0793c64053
contacts.get_contact() now always returns a list (empty if needed) when no resource is given. Should fix #1821
2006-04-09 09:39:02 +00:00
Yann Leboulanger
0828f88e29
fix logic. Fixes #1798
2006-04-04 19:32:12 +00:00
Nikos Kouremenos
7ad5bf4580
improve comment
2006-04-04 11:44:17 +00:00
Yann Leboulanger
117acf702c
contact.show can be not in roster. Fixes #1792
2006-04-01 10:23:40 +00:00
Yann Leboulanger
d0f7758647
clean common.contacts._contacts when we remove a contact. Fixes #1788
2006-03-31 17:54:52 +00:00
Yann Leboulanger
3b46d08e5d
prevent a useless stanza
2006-03-29 20:04:48 +00:00
Yann Leboulanger
65edabfb6c
some cleanup
2006-03-28 14:50:19 +00:00
Nikos Kouremenos
b4d8f99d58
nothing
2006-03-27 22:30:02 +00:00
Dimitur Kirov
c9bdf56da7
show can be 'error' too
2006-03-24 23:50:26 +00:00
Yann Leboulanger
f8db75e255
New metacontact way. JEP is not published yet, but I talked with the author. Old metacontact info are removed automaticaly
2006-03-24 12:55:56 +00:00
Nikos Kouremenos
9ec5e798b1
improve a comment
2006-03-05 11:42:42 +00:00
Yann Leboulanger
1c13fcd648
[Geobert] Don't send bot JEP85 and JEP22 when only JEP22 is supported by contact. Fixes #1317
2006-03-03 14:41:55 +00:00
Yann Leboulanger
aa90dc35a6
typo
2006-03-01 19:25:55 +00:00
Yann Leboulanger
6505d57f38
some check in meta contacts. See #1627
2006-03-01 18:58:28 +00:00
Yann Leboulanger
4b327b5682
[Geobert] JEP-0022 partial support (composing). Tunned by me. Fixes #1317
2006-03-01 18:16:54 +00:00
Yann Leboulanger
0b2f9d4617
we now keep last_status_time, show it in tooltip and information window, ask it (jabber:iq:last, JEP-0012) when we open information window. Fixes #1133
2006-02-22 14:31:01 +00:00
Yann Leboulanger
4372ed7fe4
typo. Fix #1521
2006-02-06 18:21:40 +00:00
Yann Leboulanger
89d2420473
typo
2006-02-05 10:19:36 +00:00
Yann Leboulanger
f22b455da8
when we remove a contact that has subcontacts or is a subcontact, update meta contacts info stored on the server
2006-01-31 21:59:12 +00:00
Yann Leboulanger
b8243fd45b
prevent to return None in get_children_contacts
2006-01-29 17:56:39 +00:00
Yann Leboulanger
ec927d3a4b
We can now add and remove meta contacts by drag and drop from same group
2006-01-26 23:20:27 +00:00
Yann Leboulanger
4f21775305
we can now get meta contacts from server and display them
2006-01-26 11:23:15 +00:00
Yann Leboulanger
d2ab3031f1
contact.name can now be empty. So use contact.get_shown_name() that returns a user friendly name
2006-01-10 18:30:57 +00:00
Travis Shirk
a6bdc39d5d
Private message bug fixes
2006-01-08 23:14:50 +00:00
Travis Shirk
460ac48ec4
Chatstate fixes and merged revisions 5054,5059-5060 via svnmerge from
...
svn://svn.gajim.org/gajim/trunk
........
r5054 | nicfit | 2006-01-07 22:06:08 -0700 (Sat, 07 Jan 2006) | 2 lines
typo fix
........
r5059 | asterix | 2006-01-08 10:03:32 -0700 (Sun, 08 Jan 2006) | 2 lines
remove the Gmail option from GUI, it's only in ACE. fixes #883
........
r5060 | asterix | 2006-01-08 12:14:19 -0700 (Sun, 08 Jan 2006) | 2 lines
the Contact.jid returned by contact_from_gc_contact() function is the fake jid, even if we know the real jid. this means pm windows are index by the fake jid (gajim.interface.instances[account]['chats'][FAKE_JID])
........
2006-01-08 20:32:39 +00:00
Travis Shirk
e53e786182
Trying to fix PM regression since merge
2006-01-08 07:50:26 +00:00
Travis Shirk
ad087f10c4
Use contacts.py from trunk and bug fix
2006-01-08 05:27:36 +00:00
Travis Shirk
c033a670d1
Merged revisions 5044-5051 via svnmerge from
...
svn://svn.gajim.org/gajim/trunk
........
r5044 | asterix | 2006-01-07 17:17:05 -0700 (Sat, 07 Jan 2006) | 2 lines
open the vcard on the real jid in gc if we know it
........
r5045 | asterix | 2006-01-07 17:23:33 -0700 (Sat, 07 Jan 2006) | 2 lines
use real jid when we open a pm message if we know it
........
r5046 | asterix | 2006-01-07 17:27:38 -0700 (Sat, 07 Jan 2006) | 2 lines
get contact from the self.contacts so that even if it's pm we get a Contact instance
........
r5047 | asterix | 2006-01-07 17:30:58 -0700 (Sat, 07 Jan 2006) | 2 lines
don't ask vcard when we get an error presence
........
r5048 | asterix | 2006-01-07 17:39:05 -0700 (Sat, 07 Jan 2006) | 2 lines
fix logic in contacts.add_contact() function
........
r5049 | asterix | 2006-01-07 18:08:21 -0700 (Sat, 07 Jan 2006) | 2 lines
do not use underline in join_gc menu
........
r5050 | asterix | 2006-01-07 18:12:09 -0700 (Sat, 07 Jan 2006) | 2 lines
don't use underline in all menus that contact an account name
........
r5051 | asterix | 2006-01-07 18:18:16 -0700 (Sat, 07 Jan 2006) | 2 lines
add an ACE option to hide the avatar in tabbed chat window
........
2006-01-08 05:05:16 +00:00