comparison sat.tac @ 33:b9bb5d8e0cc7

In-band-registration: data form 2 xml conversion
author Goffi <goffi@goffi.org>
date Tue, 08 Dec 2009 09:54:44 +0100
parents d6b613764dd7
children 6491b7956c80
comparison
equal deleted inserted replaced
32:c4badbf3dd97 33:b9bb5d8e0cc7
522 ## Generic HMI ## 522 ## Generic HMI ##
523 523
524 def actionResult(self, id, type, data): 524 def actionResult(self, id, type, data):
525 """Send the result of an action 525 """Send the result of an action
526 @param id: same id used with action 526 @param id: same id used with action
527 @type: result type ("PARAM", "SUCCESS", "ERROR") 527 @type: result type ("PARAM", "SUCCESS", "ERROR", "FORM")
528 @data: dictionary 528 @data: dictionary
529 """ 529 """
530 self.bridge.actionResult(type, id, data) 530 self.bridge.actionResult(type, id, data)
531 531
532 def actionResultExt(self, id, type, data): 532 def actionResultExt(self, id, type, data):
533 """Send the result of an action, extended version 533 """Send the result of an action, extended version
534 @param id: same id used with action 534 @param id: same id used with action
535 @type: result type ("PARAM", "SUCCESS", "ERROR") 535 @type: result type /!\ only "DICT_DICT" for this method
536 @data: dictionary of dictionaries 536 @data: dictionary of dictionaries
537 """ 537 """
538 if type != "DICT_DICT": 538 if type != "DICT_DICT":
539 error("type for actionResultExt must be DICT_DICT, fixing it") 539 error("type for actionResultExt must be DICT_DICT, fixing it")
540 type = "DICT_DICT" 540 type = "DICT_DICT"