コード例 #1
0
 def getScripts(self):
     """Return list of available scripts descriptions."""
     manager = IPythonScriptManager(self.context)
     for path, info in manager.getScripts():
         data = {
             'path': path,
             'title': info.title,
             'enabled': info.enabled,
             'timing': info.timing
         }
         if info.timing:
             data.update(info.getTiming())
         yield data
 def getScripts(self):
     """Return list of available scripts descriptions."""
     manager = IPythonScriptManager(self.context)
     for path, info in manager.getScripts():
         script = manager.getScript(path)
         yield {"path": path, "title": info.title, "enabled": info.enabled, "errors": self.checkSyntax(script)}