Mercurial > libervia-backend
comparison plugins/plugin_xep_0065.py @ 60:9764e027ecc0
SàT: multi-profile parameters, first draft
- new bridge methods getProfilesList and createProfile
- param xml now use two types: general and individual, general are common parameters, individual parameters are linked to profiles
- indidual xml are constructed from param xml and saved values
/!\ params values are not saved yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 28 Jan 2010 02:32:27 +1100 |
parents | a5b5fb5fc9fd |
children | d46f849664aa |
comparison
equal
deleted
inserted
replaced
59:3e5abe3bbead | 60:9764e027ecc0 |
---|---|
453 class XEP_0065(XMPPHandler): | 453 class XEP_0065(XMPPHandler): |
454 implements(iwokkel.IDisco) | 454 implements(iwokkel.IDisco) |
455 | 455 |
456 params = """ | 456 params = """ |
457 <params> | 457 <params> |
458 <general> | |
458 <category name="File Transfert"> | 459 <category name="File Transfert"> |
459 <param name="IP" value='0.0.0.0' default_cb='yes' type="string" /> | 460 <param name="IP" value='0.0.0.0' default_cb='yes' type="string" /> |
460 <param name="Port" value="28915" type="string" /> | 461 <param name="Port" value="28915" type="string" /> |
461 </category> | 462 </category> |
463 </general> | |
462 </params> | 464 </params> |
463 """ | 465 """ |
464 | 466 |
465 def __init__(self, host): | 467 def __init__(self, host): |
466 info("Plugin XEP_0065 initialization") | 468 info("Plugin XEP_0065 initialization") |