comparison sat/bridge/bridge_constructor/bridge_template.ini @ 3028:ab2696e34d29

Python 3 port: /!\ this is a huge commit /!\ starting from this commit, SàT is needs Python 3.6+ /!\ SàT maybe be instable or some feature may not work anymore, this will improve with time This patch port backend, bridge and frontends to Python 3. Roughly this has been done this way: - 2to3 tools has been applied (with python 3.7) - all references to python2 have been replaced with python3 (notably shebangs) - fixed files not handled by 2to3 (notably the shell script) - several manual fixes - fixed issues reported by Python 3 that where not handled in Python 2 - replaced "async" with "async_" when needed (it's a reserved word from Python 3.7) - replaced zope's "implements" with @implementer decorator - temporary hack to handle data pickled in database, as str or bytes may be returned, to be checked later - fixed hash comparison for password - removed some code which is not needed anymore with Python 3 - deactivated some code which needs to be checked (notably certificate validation) - tested with jp, fixed reported issues until some basic commands worked - ported Primitivus (after porting dependencies like urwid satext) - more manual fixes
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:08:41 +0200
parents c7c52c0dc13a
children 2cc2f65379f7
comparison
equal deleted inserted replaced
3027:ff5bcb12ae60 3028:ab2696e34d29
505 category=core 505 category=core
506 sig_in=sss 506 sig_in=sss
507 sig_out=s 507 sig_out=s
508 doc=Get XMLUI to manage trust for given encryption algorithm 508 doc=Get XMLUI to manage trust for given encryption algorithm
509 doc_param_0=to_jid: bare JID of entity to manage 509 doc_param_0=to_jid: bare JID of entity to manage
510 doc_param_0=namespace: namespace of the algorithm to manage 510 doc_param_1=namespace: namespace of the algorithm to manage
511 doc_param_2=%(doc_profile_key)s 511 doc_param_2=%(doc_profile_key)s
512 doc_return=(XMLUI) UI of the trust management 512 doc_return=(XMLUI) UI of the trust management
513 513
514 [setPresence] 514 [setPresence]
515 type=method 515 type=method
809 category=core 809 category=core
810 sig_in=ssbs 810 sig_in=ssbs
811 sig_out=(asa(sss)a{sa(a{ss}as)}) 811 sig_out=(asa(sss)a{sa(a{ss}as)})
812 param_1_default=u'' 812 param_1_default=u''
813 param_2_default=True 813 param_2_default=True
814 param_3_default=u"@DEFAULT@" 814 param_3_default="@DEFAULT@"
815 doc=Discover infos on an entity 815 doc=Discover infos on an entity
816 doc_param_0=entity_jid: JID to discover 816 doc_param_0=entity_jid: JID to discover
817 doc_param_1=node: node to use 817 doc_param_1=node: node to use
818 doc_param_2=use_cache: use cached data if available 818 doc_param_2=use_cache: use cached data if available
819 doc_param_3=%(doc_profile_key)s 819 doc_param_3=%(doc_profile_key)s
835 category=core 835 category=core
836 sig_in=ssbs 836 sig_in=ssbs
837 sig_out=a(sss) 837 sig_out=a(sss)
838 param_1_default=u'' 838 param_1_default=u''
839 param_2_default=True 839 param_2_default=True
840 param_3_default=u"@DEFAULT@" 840 param_3_default="@DEFAULT@"
841 doc=Discover items of an entity 841 doc=Discover items of an entity
842 doc_param_0=entity_jid: JID to discover 842 doc_param_0=entity_jid: JID to discover
843 doc_param_1=node: node to use 843 doc_param_1=node: node to use
844 doc_param_2=use_cache: use cached data if available 844 doc_param_2=use_cache: use cached data if available
845 doc_param_3=%(doc_profile_key)s 845 doc_param_3=%(doc_profile_key)s
854 param_2_default=False 854 param_2_default=False
855 param_3_default=True 855 param_3_default=True
856 param_4_default=True 856 param_4_default=True
857 param_5_default=True 857 param_5_default=True
858 param_6_default=False 858 param_6_default=False
859 param_7_default=u"@DEFAULT@" 859 param_7_default="@DEFAULT@"
860 doc=Discover items of an entity 860 doc=Discover items of an entity
861 doc_param_0=namespaces: namespaces of the features to check 861 doc_param_0=namespaces: namespaces of the features to check
862 doc_param_1=identities: identities to filter 862 doc_param_1=identities: identities to filter
863 doc_param_2=bare_jid: if True only retrieve bare jids 863 doc_param_2=bare_jid: if True only retrieve bare jids
864 if False, retrieve full jids of connected resources 864 if False, retrieve full jids of connected resources