def file_copy(src=None, dest=None):
    conn = __proxy__['junos.conn']()
    ret = dict()
    ret['out'] = True
    try:
        with SCP(conn, progress=True) as scp:
            scp.put(src, dest)
        ret['message'] = 'Successfully copied file from {0} to {1}'.format(
            src, dest)

    except Exception as exception:
        ret['message'] = 'Could not copy file : "{0}"'.format(exception)
        ret['out'] = False

    return ret
Makes Events callable for easy use in your urls.py
dataset/ETHPy150Open saltstack/salt/salt/modules/junos.py/file_copy--crossover with--dataset/ETHPy150Open statesofpop/django-cal/django_cal/views.py/Events.__call__