Allura/allura/lib/helpers.py
def auditlog_user(message, *args, **kwargs):
    """
    Create an audit log entry for a user, including the IP address

    :param str message:
    :param user: a :class:`allura.model.auth.User`
    """
    from allura import model as M
    ip_address = utils.ip_address(request)
    message = 'IP Address: {}\n'.format(ip_address) + message
    if kwargs.get('user') and kwargs['user'] != c.user:
        message = 'Done by user: {}\n'.format(c.user.username) + message
    return M.AuditLog.log_user(message, *args, **kwargs)

    Create an audit log entry for a user, including the IP address

    :param str message:
    :param user: a :class:`allura.model.auth.User`
    
Create an audit log entry for a user, including the IP address
Create an audit log entry for a user including the IP address
def auditlog_user(message, *args, **kwargs):
    from allura import model as M
    ip_address = utils.ip_address(request)
    message = 'IP Address: {}\n'.format(ip_address) + message
    if kwargs.get('user') and kwargs['user'] != c.user:
        message = 'Done by user: {}\n'.format(c.user.username) + message
    return M.AuditLog.log_user(message, *args, **kwargs)
def auditlog_user ( message , * args , ** kwargs ) : from allura import model as M ip_address = utils . ip_address ( request ) message = 'IP Address: {}\n' . format ( ip_address ) + message if kwargs . get ( 'user' ) and kwargs [ 'user' ] != c . user : message = 'Done by user: {}\n' . format ( c . user . username ) + message return M . AuditLog . log_user ( message , * args , ** kwargs )
Create an audit log entry for a user, including the IP address
Create an audit log entry for a user including the IP address
"""
    Create an audit log entry for a user, including the IP address

    :param str message:
    :param user: a :class:`allura.model.auth.User`
    """
message
None
user
None