def CreatedAnnotator(object, event=None): dc = IDCTimes(object, None) if dc is not None: now = datetime.now() dc.created = now dc.modified = now
def ModifiedAnnotator(object, event=None): dc = IDCTimes(object, None) if dc is not None: dc.modified = datetime.now()