コード例 #1
0
ファイル: serverManager.py プロジェクト: CBinyenya/cmsclient
 def _requestFeedback(self, response):
     inbox = InboxManager()
     if response[0] == 'Failure':
         inbox.update(response[2], Identity=['requestFeedback', 'failed'])
         wx.MessageBox(response[1], 'FeedBack', wx.ICON_WARNING)
     else:
         inbox.update(response[2], Identity=['requestFeedback', 'sent'])
         wx.MessageBox('%d sent messages' % len(response[2]), 'FeedBack', wx.ICON_INFORMATION)
コード例 #2
0
ファイル: serverManager.py プロジェクト: CBinyenya/cmsserver
 def _requestFeedback(self,response):        
     inbox = InboxManager()        
     if response[0] == "Failure":
         inbox.update(response[2],Identity=["requestFeedback","failed"])            
         wx.MessageBox(response[1],"FeedBack",wx.ICON_WARNING)
     else:            
         inbox.update(response[2],Identity=["requestFeedback","sent"])
         wx.MessageBox("%d sent messages"%(len(response[2])),
                                                  "FeedBack",wx.ICON_INFORMATION)