(self, text)
| 72 | db.save(p) |
| 73 | |
| 74 | def importPatterns(self, text): |
| 75 | imports, num = es_TargetProfile.importPatterns(text) |
| 76 | lenImports = len(imports) |
| 77 | |
| 78 | if lenImports == 0: |
| 79 | raise ImportError("No patterns found for import") |
| 80 | if lenImports != num: |
| 81 | raise ImportError("%d patterns imported from clipboard; %d had errors" % (num, num - lenImports)) |
| 82 | |
| 83 | def exportPatterns(self): |
| 84 | patterns = self.getUserTargetProfileList() |
nothing calls this directly
no test coverage detected