mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-13 16:34:34 +12:00
16 lines
392 B
Python
16 lines
392 B
Python
#!/usr/bin/env python
|
|
# --!-- coding: utf8 --!--
|
|
|
|
|
|
class searchableModel():
|
|
|
|
def searchOccurrences(self, searchRegex, columns):
|
|
results = []
|
|
for item in self.searchableItems():
|
|
for column in columns:
|
|
results += item.searchOccurrences(searchRegex, column)
|
|
return results
|
|
|
|
def searchableItems(self):
|
|
raise NotImplementedError
|