Mercurial > libervia-backend
comparison src/bridge/bridge_constructor/bridge_contructor.py @ 371:3ea41a199b36
bridge refactoring: categories are now core and plugin instead of communication and request
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jul 2011 01:04:24 +0200 |
parents | eb9d33ba4e36 |
children | 193fd5995430 |
comparison
equal
deleted
inserted
replaced
370:68cdaf6d78e3 | 371:3ea41a199b36 |
---|---|
342 arg_doc = self.getArgumentsDoc(section) | 342 arg_doc = self.getArgumentsDoc(section) |
343 async = "async" in self.getFlags(section) | 343 async = "async" in self.getFlags(section) |
344 completion = { | 344 completion = { |
345 'sig_in':function['sig_in'] or '', | 345 'sig_in':function['sig_in'] or '', |
346 'sig_out':function['sig_out'] or '', | 346 'sig_out':function['sig_out'] or '', |
347 'category':'REQ' if function['category'] == 'request' else 'COMM', | 347 'category':'PLUGIN' if function['category'] == 'plugin' else 'CORE', |
348 'name':section, | 348 'name':section, |
349 'args':self.getArguments(function['sig_in'], name=arg_doc, default=default ) | 349 'args':self.getArguments(function['sig_in'], name=arg_doc, default=default ) |
350 } | 350 } |
351 | 351 |
352 if function["type"] == "signal": | 352 if function["type"] == "signal": |
417 arg_doc = self.getArgumentsDoc(section) | 417 arg_doc = self.getArgumentsDoc(section) |
418 async = "async" in self.getFlags(section) | 418 async = "async" in self.getFlags(section) |
419 completion = { | 419 completion = { |
420 'sig_in':function['sig_in'] or '', | 420 'sig_in':function['sig_in'] or '', |
421 'sig_out':function['sig_out'] or '', | 421 'sig_out':function['sig_out'] or '', |
422 'category':'req' if function['category'] == 'request' else 'comm', | 422 'category':'plugin' if function['category'] == 'plugin' else 'core', |
423 'name':section, | 423 'name':section, |
424 'args':self.getArguments(function['sig_in'], name=arg_doc, default=default) | 424 'args':self.getArguments(function['sig_in'], name=arg_doc, default=default) |
425 } | 425 } |
426 | 426 |
427 if function["type"] == "method": | 427 if function["type"] == "method": |