Example #1
0
 def broadcast_status(self, acc_array, text):
     responses = []
     for acc_id in acc_array:
         try:
             account = self.accman.get(acc_id)
             resp = Response(account.update_status(text), account_id=acc_id)
             responses.append(resp)
         except Exception, exc:
             resp = self.__handle_exception(exc)
             resp.account_id = acc_id
             responses.append(resp)
Example #2
0
 def broadcast_status(self, acc_array, text):
     responses = []
     for acc_id in acc_array:
         try:
             account = self.accman.get(acc_id)
             resp = Response(account.update_status(text), account_id=acc_id)
             responses.append(resp)
         except Exception, exc:
             resp = self.__handle_exception(exc)
             resp.account_id = acc_id
             responses.append(resp)