Denis Fomin
4b33634a0b
Copyright 2013>2014
2014-01-02 12:33:54 +04:00
Yann Leboulanger
5095bc6598
support direct invitation (XEP-0249). Fixes #7581
2013-11-28 21:24:17 +01:00
Yann Leboulanger
9c8c1de03f
update my copyright
2013-04-05 21:35:39 +02:00
Yann Leboulanger
8079736493
fix traceback
2013-01-10 19:47:57 +01:00
Denis Fomin
b6ff150282
fix tracebacks
2013-01-07 18:33:41 +04:00
Yann Leboulanger
e03b3c35b6
fix traceback handling
...
fix struc and sha1 usage (use bytes instead of string)
2013-01-05 00:03:36 +01:00
Yann Leboulanger
3fdefe20b7
xrange() -> list(range())
2013-01-02 18:17:51 +01:00
Yann Leboulanger
912f0e921d
fix imports and many py3 changements
2013-01-02 13:54:02 +01:00
Yann Leboulanger
d27591076f
fix exception handling
2013-01-01 23:18:36 +01:00
Yann Leboulanger
498bcb6ccd
decrease call to get_contact(s) function to improve speed. see #7125
2012-09-24 12:24:10 +02:00
Jefry Lagrange
ccb53c7c08
send files to gc peer. Fixes #7171
2012-06-16 18:41:33 -04:00
Yann Leboulanger
3a3f99d618
upgrade copyright
2012-01-11 22:20:34 +01:00
Yann Leboulanger
98432f6666
cean chatstate code: remove XEP-0022 support and use caps to know if a contact supports it
2011-08-27 22:41:55 +02:00
Yann Leboulanger
2be53c4aac
update my copyright to 2010
2010-03-11 16:52:36 +01:00
Alexander Cherniuk
bbe46f2a5c
Improved get_contacts_jid_list
2010-03-08 18:33:53 +02:00
Éric Araujo
fedd7dc8e2
convert tabs to spaces in source code thanks to reindent.py
...
holy diff batman!
2010-02-08 15:08:40 +01:00
Yann Leboulanger
bfded43d1e
don't synchronize groupchats when we synchronize contacts between 2 accounts. Fixes #5570
2010-01-25 19:31:48 +01:00
Yann Leboulanger
95137bae06
[Tony] print idle time in tooltip. see #5528
2010-01-06 23:12:56 +01:00
Stephan Erb
e9caf06992
Split common/caps.py. We now have common/protocol/ to contain XMPP connection related classes.
...
Plan is to move our ConnectionX classess to the protocol package one by one. Each move should be more than a simple copy paste. It should be preceeded by cleanups and the like.
2009-12-10 20:06:46 +01:00
Stephan Erb
228678d6e8
Do not add the resource when morphing a GC_Contact to a normal Contact.
...
gc_contact.jid and gc_contact.resource are empty in anonymous rooms. In non-anonymous rooms those contain the real jid and resource of the contact.
We must not mix those information with the jid of the contact in the groupchat: We assumed that "test@conference.gajim.org/nick" was the Jid and 'someresource' the resource. So we tried to talk to 'test@conference.gajim.org/nick/someresource'.
2009-12-05 11:49:07 +01:00
Stephan Erb
e7337211fb
Rename the Contacts class and document it, beeing a temporary refactoring artifact.
2009-12-01 23:31:17 +01:00
Alexander Cherniuk
684f45b148
Small refactoring bits
2009-11-30 12:53:26 +02:00
Stephan Erb
9b7ae8cac3
Small cleanups for avatar save. Also fixes #5461 .
...
* set default file type for avatars centrally
* remove client side decision logic determing if a avatar loookup shall happen for a groupchat contact or for a normal contact
* remove unused method (this one was triggering the traceback in #5461 )
2009-11-29 23:06:49 +01:00
Stephan Erb
b2efc9685b
Always show the 'add contact to roster' menu entry in textviews.
...
Showing it is more consistent than hiding it from the user. (We do the same in the Groupchat roster)
2009-11-29 21:06:26 +01:00
Alexander Cherniuk
cea7c66f75
A portion of doc-string refactoring
2009-11-26 12:21:43 +02:00
Stephan Erb
8b3a82ff12
Merge changes from default branch into refactoring branch
2009-11-16 19:53:43 +01:00
Stephan Erb
a3ea00f4ea
Remove different dicts for tune, activity and mood and from now on only use the common 'pep' dict.
...
The pep dict contacts the different UserPEP classes.
2009-11-15 23:52:43 +01:00
Stephan Erb
e41e484855
Proof of concept: Move markup / pixbuf determination logic from the UI to the different PEP classes.
...
Currently this is only done for UserMood. We can decide later on (if needed), to move the asPixbufIcon and asMarkupText methods to a more appropriate place.
Goal is to remove as much redundant code as possible.
2009-11-15 00:12:15 +01:00
Yann Leboulanger
1ee2e72a02
fix renaming an account
2009-11-13 19:22:36 +01:00
Stephan Erb
36fb5def4b
Shrink public interface of the MetacontactManager.
2009-11-12 22:58:45 +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
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
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
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
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
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
Stephan Erb
0abb1dfd20
Extract class: MetacontactManager from Contacts
...
For easy migration, interface is still preserved.
2009-11-05 19:43:25 +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
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
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