Пример #1
0
 def _run_localcommand(self, args):
     # a local command is being invoked, if local command support is not 
     # installed, fail and report to the user.  Otherwise, delegate
     # to running a local command
     if HAS_LOCAL_COMMANDS:
         runner = TemplerLocalCommand('add')
         result = runner.run(args[1:])
         if result is None:
             return runner.return_code
         else:
             return result
     else:
         # situation 1, fail and report.
         print self.texts['no_localcommands_warning']
         return 1