Пример #1
0
def CreatedAnnotator(object, event=None):
    dc = IDCTimes(object, None)
    if dc is not None:
        now = datetime.now()
        dc.created = now
        dc.modified = now
Пример #2
0
def ModifiedAnnotator(object, event=None):
    dc = IDCTimes(object, None)
    if dc is not None:
        dc.modified = datetime.now()