SUBSTITUTION OUT + IN FORM CONTINUE

From Vasco, 3 Weeks ago, written in Plain Text, viewed 8 times. This paste will bite the big one in 7 Hours.
URL https://paste.afonso.co/view/8ee1da84 Embed
Download Paste or View Raw
  1. from System.IO import File, Path
  2. global team
  3.  
  4.  
  5. def __getData(graphicOnAirItem, viewBag, momentExecution):
  6.         viewBag.Clear()
  7.  
  8.         viewBag.SetFloat("vSubstitutionType", 2)
  9.        
  10.         playerNumberIn = graphicOnAirItem.ExtraData["PlayerIn"]
  11.         team = graphicOnAirItem.ExtraData["Team"]
  12.         viewBag.SetImage("lgBadge", "Images\Badges\%s.png" % team.RefName)             
  13.        
  14.         teamPath = Path.Combine(graphicOnAirItem.GraphicsEngine.Options.RootPath, graphicOnAirItem.Scene.Path, "images", "Photos", team.RefName)
  15.         playerPath = Path.Combine(teamPath, "%s.png"%(playerNumberIn.RefName))
  16.         if File.Exists(playerPath):
  17.                 viewBag.SetVideo("lgPlayer", playerPath)
  18.         else:
  19.                 viewBag.SetImage("lgPlayer", "Images\\Photos\\Photo.png")
  20.         if playerNumberIn.OtherNames != None and playerNumberIn.OtherNames != "":
  21.                 nameIn = playerNumberIn.OtherNames.upper()
  22.                 viewBag.SetString("tName", nameIn)
  23.                 viewBag.SetString("tNumber", "%s. " % playerNumberIn.Number.ToString())
  24.                
  25.         else:
  26.                 firstNameIn = playerNumberIn.FirstName.upper()
  27.                 lastNameIn = playerNumberIn.LastName.upper()
  28.                 viewBag.SetString("tName", "%s %s"  % (firstNameIn, lastNameIn))
  29.                 viewBag.SetString("tNumber", "%s. " % playerNumberIn.Number.ToString())

Reply to "SUBSTITUTION OUT + IN FORM CONTINUE"

Here you can reply to the paste above