Commit Graph

103 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
48aad0f234 JCLComponent handle_tick notImplemented test
darcs-hash:20061010181746-86b55-5a50c2ab433b4f09d5e380a05bcef6d5d27ee439.gz
2006-10-10 20:17:46 +02:00
David Rousselie
7c8726b5c9 Test error in handle_tick
Add NotImplementedError in virtual methods
Test NotImplementError raising for JCLComponent handle_tick method

darcs-hash:20061010062453-86b55-91546440555f22e80d5a5e3dd4eb73d0d40b3dc1.gz
2006-10-10 08:24:53 +02:00
David Rousselie
56dbebe6c2 Code cleanup
darcs-hash:20061009173709-86b55-949f17ec584767d3582e47330efe942e298f9feb.gz
2006-10-09 19:37:09 +02:00
David Rousselie
cb016a5406 Threads exceptions handling
pass exceptions throw Queue so MainThread can propagate exceptions to make tests failed when needed

darcs-hash:20061009173419-86b55-9197a944aa629ab43f55d56662b8f873036cc60e.gz
2006-10-09 19:34:19 +02:00
David Rousselie
9e28468b81 Add per thread SQLObject DBConnection
make associated tests pass
SQLObject multi-thread access ***END OF DESCRIPTION***

Place the long patch description above the ***END OF DESCRIPTION*** marker.
The first line of this file will be the patch name.

This patch contains the following changes:

M ./run_tests.py -1 +6
M ./src/jcl/jabber/component.py -30 +70
M ./src/jcl/jabber/feeder.py -5 +11
M ./src/jcl/model/account.py +6
M ./tests/jcl/jabber/test_component.py -19 +62
M ./tests/jcl/jabber/test_feeder.py -7 +45

darcs-hash:20061009172608-86b55-804b8910c5ff19414a4f016289d3f03fb73866f9.gz
2006-10-09 19:26:08 +02:00
David Rousselie
d505e65972 Classes and modules documentation completion
darcs-hash:20061004170305-86b55-b85772708e21531de456b86db1560a866f42a008.gz
2006-10-04 19:03:05 +02:00