Exemple #1
0
 def getPackagesToBuild(self):
     view.printListWithBullets(self.__sections)
     try:
         option = model.readInput('Enter the packages to build', range(0, len(self.__sections)), multiple=True)
     except:
         view.printQuit()
         raise ValueError('I Quit!')
     return option
Exemple #2
0
 def __call__(self, parser, namespace, values, option_string=None):
     listy = model.filesWithExtension(os.getcwd(), 'cfg');
     #TODO Error checking with option to provide the cfg file directory
     view.printListWithBullets(listy)
     try:
         select = model.readInput('Enter which platform: ', range(0, len(listy)))
     except:
         view.printQuit()
         return
     setattr(namespace, self.dest, listy[select[0]])