Commit Graph

60 Commits

Author SHA1 Message Date
David Rousselie
24b54799bf setuptools integration
darcs-hash:20070508143542-86b55-a0a3ecad6c4dad7dc0e605db86cac9bbd1133f9f.gz
2007-05-08 16:35:42 +02:00
David Rousselie
ca0d636b33 Finish AccountManager refactoring
darcs-hash:20070405161831-86b55-592fee80ee5682e6fa13ac7a96432e362bec186a.gz
2007-04-05 18:18:31 +02:00
David Rousselie
863da17c6f Move set_register handlers to AccountManager
darcs-hash:20070329160047-86b55-476be92b2db0b0b144a27d44111478b880adfa85.gz
2007-03-29 18:00:47 +02:00
David Rousselie
77eaa91405 Move get_register handlers in AccountManager
darcs-hash:20070329051608-86b55-adccf703bd3fe6efa583c6e8d3dcadf60f0168b0.gz
2007-03-29 07:16:08 +02:00
David Rousselie
516bb75a77 Move disco_get_info and disco_get_items to AccountManager
discovery get_info and get_items handler now use a generic
method "apply_behavior" to determine receiver (main component,
account type node or account).
AccountManager split previous handler in a more testable way
(test returned objects instead of XML).

darcs-hash:20070327163756-86b55-3932d4b1f59fb20d6aa8e096cdf06049095a4c2b.gz
2007-03-27 18:37:56 +02:00
David Rousselie
0fad164e57 Correct get_register_fields inheritance usage
PresenceAccount subclasses called PresenceAccount.get_register_fields but
the "cls" parameter was always PresenceAccount. Now subclasses pass a "real_class"
parameter which contains the class type on which get_register_fields was called.

darcs-hash:20070325122936-86b55-fb6db014fbdeaa2fa1a423b935df5e72ffe6a20a.gz
2007-03-25 14:29:36 +02:00
David Rousselie
289e1f2c36 Registration form fields naming updated
darcs-hash:20070324105551-86b55-51c4f11ff6d916a867969c38090dbaad30e597ff.gz
2007-03-24 11:55:51 +01:00
David Rousselie
101e74f6c7 account default_func and post_func refactoring
for registration fields, default_func now returns default_value
and post_func include test for mandatory fields.

darcs-hash:20070322161501-86b55-75b6d57fef3ba0df6c6c80a487c9afcdab2d40c3.gz
2007-03-22 17:15:01 +01:00
David Rousselie
6753545187 Test DiscoIdentity component name
darcs-hash:20070321172639-86b55-5b6da4fc5c905e26b60f414012590ee3a70f2d66.gz
2007-03-21 18:26:39 +01:00
David Rousselie
2791e3cd61 Better handlers exceptions handling
darcs-hash:20070321072742-86b55-56b0ae25d0a3e8835100a6b570aeb271ad912fe7.gz
2007-03-21 08:27:42 +01:00
David Rousselie
e8ece28f00 Set public JCLComponent.send_error method
darcs-hash:20070222173205-86b55-d14f1d840e5ce83cd67a20afdbbc8d23b1907057.gz
2007-02-22 18:32:05 +01:00
David Rousselie
d83ad1debe send error implementation
send an error to a user only if he has not already been notified

darcs-hash:20070222172740-86b55-7032fdab46f54932c222c36a68bad0915120e92c.gz
2007-02-22 18:27:40 +01:00
David Rousselie
826d045b41 Replace DataForm implementation by Form implementation from PyXMPP
darcs-hash:20070213174122-86b55-54dc9d8ae9c4f354af0b46e597779744fbd97900.gz
2007-02-13 18:41:22 +01:00
David Rousselie
b4ae16acc6 Multi account types support : change discovery handling
In discovery process, account types are listed with
jid

darcs-hash:20070207173337-86b55-b1b67a8d099e3ab19caa7599953c6836339db6ad.gz
2007-02-07 18:33:37 +01:00
David Rousselie
cfa8da9655 Multiple account types: disco get_items implemented and tested
darcs-hash:20070131175146-86b55-de5924fb265a0f611c053303de114e8667d6f881.gz
2007-01-31 18:51:46 +01:00
David Rousselie
ae6406b807 Refactor AccountExample to support account types naming convention
darcs-hash:20070131172203-86b55-ee6b5c58dfe7ba50a04a62b5bbbf39c5c43d430d.gz
2007-01-31 18:22:03 +01:00
David Rousselie
56f48bb516 Multiple account types support: disco type listing
Account types are listed, accounts are not yet listed (need tests)
account factory have been replace by account classes naming convention (${type}Account)

darcs-hash:20070131171321-86b55-f1de0bb3e3ddea3b16783a3ec9bf1977bee16d94.gz
2007-01-31 18:13:21 +01:00
David Rousselie
a0ec3ac81a Multi account types support (part1)
Introduce factory function to instanciate new account class while registering.
Need more work to list accounts types in disco

darcs-hash:20070123185508-86b55-1797b5a17f14d9f271775bde3eff3189a61a919f.gz
2007-01-23 19:55:08 +01:00
David Rousselie
cf3fcf5655 Test get_register list-single field values
darcs-hash:20070119170359-86b55-8e3991b4b008094329dcef4b14ba2ed4540d1c44.gz
2007-01-19 18:03:59 +01:00
David Rousselie
583679b6ed Add list-single field type
darcs-hash:20070117175956-86b55-1d833aae947a048e6240a393837cfde02e918b6f.gz
2007-01-17 18:59:56 +01:00
David Rousselie
56209ddff1 Make component works with Account subclasses
darcs-hash:20070117173408-86b55-eaf9be902109c4269dbbfc589e7284e55bc1d3eb.gz
2007-01-17 18:34:08 +01:00
David Rousselie
51334ed5f7 PresenceAccount creation
darcs-hash:20070116172724-86b55-a944af8b2e75e749c5a6533521352de26dcee39f.gz
2007-01-16 18:27:24 +01:00
David Rousselie
9a2da0eeff Give component instead of stream to Feeder and Sender classes
darcs-hash:20061130215710-86b55-652c6ee7e4a69b67c7502db8db92d3cd0b0000ea.gz
2006-11-30 22:57:10 +01:00
David Rousselie
717e1543d3 Add handle_presence_subscribed test
darcs-hash:20061130215636-86b55-55c02e41cd14be5b752f1a187ef3834abb632425.gz
2006-11-30 22:56:36 +01:00
David Rousselie
a1bc88b535 Add message to error for required fields
darcs-hash:20061130215228-86b55-c7de52faee384cbca2da64ace83780afee0789a4.gz
2006-11-30 22:52:28 +01:00
David Rousselie
285a2584a8 Add test for unknown user or account requests
darcs-hash:20061130214656-86b55-b8f2e86f09fd15725ab65ed9e2dab4cdccb2bf7e.gz
2006-11-30 22:46:56 +01:00
David Rousselie
5350af9b80 Add account test file
darcs-hash:20061127214817-86b55-dde92e63ccd21680744244e04dabc6b7e9436a71.gz
2006-11-27 22:48:17 +01:00
David Rousselie
739a1f6e07 Add Lang tests from JMC
darcs-hash:20061127214249-86b55-74dd4271c64abb35fed3ad9aed80cc0999c5f00a.gz
2006-11-27 22:42:49 +01:00
David Rousselie
5fa2f96c7f Data Form tests and clean up implementation
darcs-hash:20061127214039-86b55-9ca97b0e1c2b39510505f9faec1dda148cf73288.gz
2006-11-27 22:40:39 +01:00
David Rousselie
4eabef61f6 Initialize DataForm unit tests
darcs-hash:20061122183001-86b55-d86c899b1fccbe0328f0608a3c66641796e37b1d.gz
2006-11-22 19:30:01 +01:00
David Rousselie
ab8efe060a Initialize Lang unit tests
darcs-hash:20061122182346-86b55-e28481ce6f6854e048cd8c6d42f7de8ba10a21cb.gz
2006-11-22 19:23:46 +01:00
David Rousselie
c0d0b29654 Multilang support and cleaning for "en" locale
darcs-hash:20061122181456-86b55-3481c0c487ec5d9122e753cb4fdaf4db44cda0c3.gz
2006-11-22 19:14:56 +01:00
David Rousselie
062abf00b7 Add "required" node in register form
darcs-hash:20061120221924-86b55-5c373bcc28739b580a852f4dde84891c79c408e1.gz
2006-11-20 23:19:24 +01:00
David Rousselie
30979f1142 Required field XMPP error found
* "not-acceptable" error sent when required field is not found

darcs-hash:20061120215831-86b55-460f3114e75cd77f263800d0a32dbf27add094eb.gz
2006-11-20 22:58:31 +01:00
David Rousselie
521f3cd892 some pylint cleaning
darcs-hash:20061110082407-86b55-344fcaf1a5b2057e9917f2d54d34cf40c8a5eb8b.gz
2006-11-10 09:24:07 +01:00
David Rousselie
b2fca94692 Complete FeederComponent tests
- raise NotImplementedError exception for abstracts methods
- implement test_handle_tick

darcs-hash:20061105195847-86b55-af88958079cd5321808c2540d8c498bf47f60999.gz
2006-11-05 20:58:47 +01:00
David Rousselie
5c1804f484 Make test_time_handler run faster
darcs-hash:20061102183742-86b55-044c2a6b9d511b8d479e8028330e898b945608e5.gz
2006-11-02 19:37:42 +01:00
David Rousselie
26b7103afd Better send probe assertions in authentication test
darcs-hash:20061102183354-86b55-5967563165e992e0a96ffe1f597028d5f97b25f2.gz
2006-11-02 19:33:54 +01:00
David Rousselie
18d7d8fdb9 unavailable presence test when going offline
darcs-hash:20061102183026-86b55-bab3df0fcb8ea516fcba7aec18e824d4f2a393a4.gz
2006-11-02 19:30:26 +01:00
David Rousselie
a675e186a2 Complex Account tests
darcs-hash:20061030094313-86b55-47b0746872efdbc5d2c38e79e4859ac0c739abde.gz
2006-10-30 10:43:13 +01:00
David Rousselie
dda10fdc0e Add complex Account class
darcs-hash:20061028175554-86b55-a286c0e397f7bc3d9c9616db0c3f2f0c39a70bfa.gz
2006-10-28 19:55:54 +02:00
David Rousselie
cd39609504 set_register partial implementation
darcs-hash:20061028120036-86b55-08e755d4ae8f6ed4e2b895a33adfc34d2fd00257.gz
2006-10-28 14:00:36 +02:00
David Rousselie
3bbb9f999b "online" status not in show node
darcs-hash:20061026133855-86b55-f74a67d24465a5c7b2ae1267bca0ef05bdb617e5.gz
2006-10-26 15:38:55 +02:00
David Rousselie
85f2c8a85d get_register_exist test pass
darcs-hash:20061026133744-86b55-09b304db0aeb6522d6ef383e83b0f6457b64ed17.gz
2006-10-26 15:37:44 +02:00
David Rousselie
49fd02310a get_register second part
darcs-hash:20061026105944-86b55-186c984e426c5a3b396af082736b5b59fa44c07e.gz
2006-10-26 12:59:44 +02:00
David Rousselie
fb554c7217 get_register_new implementation
darcs-hash:20061025182846-86b55-54ee4fb3315f3155b32864018ab636895e8d2eb9.gz
2006-10-25 20:28:46 +02:00
David Rousselie
02108f2a34 Optional login/password in account
Remove login/password related attribut in Account class
but still support live password if account_class in component
has correct attributs.

darcs-hash:20061025182516-86b55-4743189d47ba481692f16ff52f8b50903df49689.gz
2006-10-25 20:25:16 +02:00
David Rousselie
510b52bf3d More tests
darcs-hash:20061018174930-86b55-29433ceb46b2c1f7decade7ff062d670a119400d.gz
2006-10-18 19:49:30 +02:00
David Rousselie
226fc220e3 presence tests
darcs-hash:20061013185925-86b55-fbb89113ad11938d8be42606a13a17058ee7ccdf.gz
2006-10-13 20:59:25 +02:00
David Rousselie
7dba7030ac Get Version Test
darcs-hash:20061011164234-86b55-38e48fdd19bfd7dc86e35f233a0b632c76c66c57.gz
2006-10-11 18:42:34 +02:00