I have written an add-in with the new pythonaddins class, I want code to execute when editing is stopped AND data saved, not when editing is stopped and edits NOT saved. Here's an extract of the code, the script doesn't appear to honor the save_changes option and runs whenever editing has been stopped. Any insights would be appreciated.
class ExtensionClass1(object):
"""Implementation for MakeMaps_addin.extension_1 (Extension)"""
def __init__(self):
# For performance considerations, please remove all unused methods in this class.
self.enabled = True
def onStopEditing(self, save_changes):
try:
# Local variables:
Other code to execute goes here