Ejemplo n.º 1
0
 def onGotoBarGoto(self):
     project_name = self.gotobar.getProject()
     asset_name = self.gotobar.getAsset()
     task_name = self.gotobar.getTask()
     
     self.assets = PillarsAssetClient.getAllAssets(project_name)
     self.tasks = PillarsAssetClient.getTasks(project_name, asset_name)
     self.updateAssetViewer()
     
     if self.assets:
         PillarsUtils.writeAssets(self.assets)
     if self.tasks:
         PillarsUtils.writeTasks(self.tasks)
     goto = PillarsCore.Goto(project_name, asset_name, task_name)
     PillarsUtils.writeGoto(goto)
     self.gotobar.setInfo("P:/Project/%s/%s/%s" % (goto.project, goto.asset, goto.task))
     print "Goto successful."