jmunsch

j or v

Jul 28th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.13 KB | None | 0 0
  1. ln 971: mainframeeventhandler
  2.  
  3.         if (( '4' in self.MainFrame.scanNumberTextValue[0]) or ( 'J' in self.MainFrame.scanNumberTextValue[0]) or ( 'V' in self.MainFrame.scanNumberTextValue[0])) is False:
  4.             self.MainFrame.statusbar.SetStatusText('I dont understand:' + self.MainFrame.currentItemInfo['jNumber'] + ' Maybe it should start with a J or a 4?')
  5.             tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please enter a Jnumber or a 4number.\n\nEntered:' + str(self.MainFrame.jNumber)+'\n\nexamples. J123456 or 4NK420000001', 'UserError', wx.OK)
  6.             results = tmp_dialog.ShowModal()
  7.             tmp_dialog.Destroy()
  8.             return
  9.         if ('J' in self.MainFrame.scanNumberTextValue[0]) or ('V' in self.MainFrame.scanNumberTextValue[0]):
  10.             self.MainFrame.statusbar.SetStatusText('I see a Jnumber')
  11.             if self.MainFrame.fingerRadio.GetValue() is True:
  12.                     tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please select ShopHQ Radio button for: ' + str(self.MainFrame.scanNumberTextValue) + '\n\nCurrent selection: FingerHut', 'UserError', wx.OK)
  13.                     results = tmp_dialog.ShowModal()
  14.                     tmp_dialog.Destroy()
  15.                     return
  16.         elif '4' in self.MainFrame.scanNumberTextValue[0]:
  17.             self.MainFrame.statusbar.SetStatusText(' I see a 4number')
  18.             if self.MainFrame.shopHqRadio.GetValue() is True:
  19.                     tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please select Fingerhut Radio button for:' + str(self.MainFrame.scanNumberTextValue) + '\n\nCurrent selection: ShopHQ', 'UserError', wx.OK)
  20.                     results = tmp_dialog.ShowModal()
  21.                     tmp_dialog.Destroy()
  22.                     return
  23.  
  24.  
  25. ##############################################
  26. ln 177 sky_manifest
  27.  
  28.  
  29.         if ('J' in scanNumber[0]) or ('V' in scanNumber[0]):
  30.             if '1' in retailer_code:
  31.                 return [True, retailer_code]
  32.         if '4' in scanNumber[0]:
  33.             if '0' in retailer_code:
  34.                 return [True, retailer_code]
  35.         return [False, retailer_code]
Advertisement
Add Comment
Please, Sign In to add comment