def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def draw(self, context):
        self.layout.operator("wm.appconfig_default", text="Blender (default)")

        # now draw the presets
        Menu.draw_preset(self, context)