示例#1
0
def signatory_modified(ob, event):
    ob = removeSecurityProxy(ob)
    if ob.user:
        title = "%s %s %s" % (ob.user.titles, ob.user.first_name,
                              ob.user.last_name)
    else:
        title = ""
    event.cls = ob.__class__.__name__
    event.description = u" %s: %s modified" % (ob.__class__.__name__, title)
    if ob.item:
        audit.objectContained(ob.item, event)
示例#2
0
def signatory_modified(ob, event):
    ob = removeSecurityProxy(ob)
    if ob.user:
        title = "%s %s %s" % (ob.user.titles,
                ob.user.first_name,
                ob.user.last_name)
    else:
        title = ""
    event.cls =  ob.__class__.__name__
    event.description = u" %s: %s modified" % (
            ob.__class__.__name__ , 
            title)
    if ob.item:
        audit.objectContained( ob.item, event)