Commit Graph

55 Commits

Author SHA1 Message Date
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 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 700665151c Implement 'supports' on contact instances.
Usage:

	if contact.supports(NS_E2E):
		....
2009-10-25 23:56:14 +01:00
Stephan Erb 396a2c603d Implement and test a supports_feature() method to directly test for supported featues on EntityCapabilites 2009-10-25 22:46:45 +01:00
Stephan Erb ca03f88fc3 Write tests and fix the caps preload alternative on the EntityCapabilities. 2009-10-25 22:32:18 +01:00
Stephan Erb 499f3dff61 First bits of a basic EntityCapabilities layer above of CapsCache. 2009-10-25 21:57:20 +01:00
Stephan Erb 0440aec980 Improve common/caps.py test coverage. 2009-10-25 21:17:32 +01:00
Stephan Erb 39c3afb518 Remove unused import and apply naming convention. 2009-10-24 20:49:16 +02:00
Yann Leboulanger 38b4e54011 ignore invalid presences 2009-04-30 15:20:37 +00:00
js ad727e47ab Remove debug output. 2008-12-06 21:26:35 +00:00
Yann Leboulanger 0acaa647bd fix caps stuff introduced in [10596] 2008-12-06 11:05:26 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 31dc32eeb9 [thorstenp] fix redefined builtins 2008-12-03 17:16:04 +00:00
Yann Leboulanger 7701f29beb [thorstenp] fix undefined variables 2008-12-02 15:10:31 +00:00
Yann Leboulanger e2118de64c [thorstenp] remove useless import 2008-12-02 14:44:26 +00:00
Yann Leboulanger 2603ee19cd don't require node in disco answer. It's only a should in XEP-0030. Fixes #3936 2008-11-04 22:03:54 +00:00
Yann Leboulanger 06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger dc5d7bcf7c [thorstenp] fix undefined variables 2008-10-20 18:05:33 +00:00
Yann Leboulanger c2c681e05c [thorstenp] remove useless import 2008-10-20 17:54:02 +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 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
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
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 e13c472e2c implement legacy pep protocol (v1.3). Fixes #4146 2008-08-04 22:06:54 +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 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
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
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
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
Yann Leboulanger bb8df6b540 remove old comment in caps.py 2008-06-12 15:16:36 +00:00
Brendan Taylor 82b30c0791 CapsCache: made docstring match the API, fixed minor bugs, added tests 2008-06-12 03:56:47 +00:00
Yann Leboulanger c127493e58 remove pep options from pref window, store them per account, store caps_hash per account. see #3954 2008-05-27 10:24:29 +00:00
Yann Leboulanger 44fc7ddd0c fix caps hash computaion according to XEP-0115. fixes #3925 2008-05-14 18:30:39 +00:00
Yann Leboulanger 07a8d9d948 category is mendatory 2008-04-24 13:44:09 +00:00
Yann Leboulanger f2f0c7aba0 use tuple instead of dict in __name: dict are not hashable 2008-04-21 14:44:19 +00:00
Yann Leboulanger dc48eeea96 fix static variable usage 2008-04-21 14:18:19 +00:00
Yann Leboulanger f593c5c2ac fix property definition 2008-04-21 14:16:20 +00:00
Yann Leboulanger 0527b7e0ea move __name to static attribute of CacheItem class 2008-04-21 13:16:41 +00:00
Yann Leboulanger 67bd94dd55 fix property code in caps.py 2008-04-21 12:57:34 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger aba1a22aa1 handle corrcetly node with more than 1 #. fixes #3445 2007-09-18 21:09:50 +00:00
Tomasz Melcer 5a5ed1530c formatting errors 2007-07-09 22:41:53 +00:00
Tomasz Melcer 6c1858224e caps: data stored and retrieved 2007-07-09 21:24:47 +00:00
Tomasz Melcer 1c0aa7ad10 Caps: caps are queried, results are stored in cache. 2007-06-30 17:31:27 +00:00