Commit Graph

10562 Commits

Author SHA1 Message Date
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
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 a87693c735 Remove auto-generated smoketests 2009-11-05 20:54:32 +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 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 c6448d0f2b Merge changes from default to refacotring branch 2009-11-05 14:43:05 +01:00
Stephan Erb dce2ea58b3 Merge local changes with default. 2009-11-05 09:11:15 +01:00
Stephan Erb 2e5bf4d0d2 Organize tests into unit and integration tests.
Integration tests can depend on UI, network or both. Unittests use neither.
2009-11-05 09:06:46 +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
Yann Leboulanger 255c16c79f fix window installer script 2009-11-03 19:59:39 +01:00
Yann Leboulanger a202367fda remove unused file from windows installer script 2009-11-03 19:53:11 +01:00
red-agent 0e38897445 Minor refactoring 2009-11-03 10:14:23 +02:00
Yann Leboulanger b4d45a120f Changeleog for 0.13 2009-11-02 22:41:43 +01: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 09496b1fbd [Gotham48] added new wroop iconset 2009-11-01 09:43:31 +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 4824db0923 [Grigroy] align colors buttons. Fixes #5385 2009-10-31 22:57:14 +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 07d0811439 Merge refactoring branch back to default 2009-10-31 18:08:06 +01:00
Stephan Erb a9f5bb59d7 Merge changes from default branch into refactoring branch 2009-10-31 17:25:47 +01:00