Commit Graph

169 Commits

Author SHA1 Message Date
David Rousselie
5fb853bdfe Move presence_available handlers to AccountManager
darcs-hash:20070329162807-86b55-2a353558d6a26e686454022c092d4d161a91d786.gz
2007-03-29 18:28:07 +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
244a82f38a Feeder component pass itself to Feeder and Sender classes
darcs-hash:20070320172708-86b55-a27ecfede6e5da36ef197438587584c59dc0a1d7.gz
2007-03-20 18:27:08 +01:00
David Rousselie
76cf0cfa9d modifiable component default lang attribut
JCLComponent constructor takes an optional lang parameter to override default
jcl.lang.Lang class.
Typical usage is in derived component classes which has a derived (from
jcl.lang.Lang) Lang class.

darcs-hash:20070320172242-86b55-7f2552cd27d8c6990c7f9fea9d4fcdccafabe4ff.gz
2007-03-20 18:22:42 +01:00
David Rousselie
352cfc921b Set JCLComponent.ask_password public
darcs-hash:20070222173443-86b55-a9998d61d4b4c6ea901cf84fa97f2bf0f5e5fa4c.gz
2007-02-22 18:34:43 +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
95f645fd16 Delete any trace of account factory
darcs-hash:20070131172522-86b55-ac7c678131705c856adbaff6da9011b0b0bf4ac3.gz
2007-01-31 18:25:22 +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
04fee565a7 Stop timer thread when stopping component
darcs-hash:20061130215532-86b55-c3093785c0b17528f6c667c4e877122583d2589e.gz
2006-11-30 22:55:32 +01:00
David Rousselie
0c94b77fdb Correct data form handling for set_register request
darcs-hash:20061130215420-86b55-871a3bfb4d082853cd21deb1793dc1c846567572.gz
2006-11-30 22:54:20 +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
46f0e53eb4 Correct multiple criteria SELECT request
Use "AND" function for multiple SELECT criteria instead of "and" python operator

darcs-hash:20061130213843-86b55-88f870624497ecd59427d57ceb244c9c6cf18937.gz
2006-11-30 22:38:43 +01:00
David Rousselie
2e5337483d Update coverage module from http://nedbatchelder.com/code/modules/coverage.html
darcs-hash:20061127215605-86b55-405c73e023a6a423127628ab4ca22166008dac7f.gz
2006-11-27 22:56:05 +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
8b4ec434ac Account test suite implementation
darcs-hash:20061123180515-86b55-fd6db5bd3cba07f2a3d5987d4c92c07f7ec32c5e.gz
2006-11-23 19:05:15 +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