def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def getText(self, callingWindow, itmContext, mainItem):
        return "Set {} as Damage Pattern".format(itmContext if itmContext is not None else "Item")