Mercurial > libervia-backend
diff src/bridge/bridge_constructor/bridge_constructor.py @ 2050:046449cc2bff
core, bridge, frontends: removed deprecated bridge method askConfirmation, confirmationAnswer, actionResult, actionResultExt and getWaitingConf
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 28 Aug 2016 19:23:58 +0200 |
parents | 2daf7b4c6756 |
children | e1015a5df6f5 |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_constructor.py Sun Aug 28 18:24:45 2016 +0200 +++ b/src/bridge/bridge_constructor/bridge_constructor.py Sun Aug 28 19:23:58 2016 +0200 @@ -167,11 +167,13 @@ def getArguments(self, signature, name=None, default=None, unicode_protect=False): """Return arguments to user given a signature + @param signature: signature in the short form (using s,a,i,b etc) @param name: dictionary of arguments name like given by getArguments @param default: dictionary of default values, like given by getDefault @param unicode_protect: activate unicode protection on strings (return strings as unicode(str)) - @return: list of arguments that correspond to a signature (e.g.: "sss" return "arg1, arg2, arg3")""" + @return: list of arguments that correspond to a signature (e.g.: "sss" return "arg1, arg2, arg3") + """ idx = 0 attr_string = [] @@ -276,7 +278,6 @@ for section in sections: function = self.getValues(section) print ("Adding %s %s" % (section, function["type"])) - default = self.getDefault(section) async_msg = """<br />'''This method is asynchronous'''""" deprecated_msg = """<br />'''<font color="#FF0000">/!\ WARNING /!\ : This method is deprecated, please don't use it !</font>'''""" signature_signal = \ @@ -516,7 +517,7 @@ 'a{i(ss)}': 'HistoryT', 'a(sss)': 'QList<MenuT>', 'a{sa{s(sia{ss})}}': 'PresenceStatusT', - 'a{sa{ss}}': 'ActionResultExtDataT'} + } def generateCoreSide(self): try: @@ -536,7 +537,6 @@ print ("Adding %s %s" % (section, function["type"])) new_elt = doc.createElement('method' if function["type"] == 'method' else 'signal') new_elt.setAttribute('name', section) - args_in_str = self.getArguments(function['sig_in']) idx = 0 args_doc = self.getArgumentsDoc(section)