Exemple #1
0
def export_flow_results_task(id):
    """
    Export a flow to a file and e-mail a link to the user
    """
    tasks = ExportFlowResultsTask.objects.filter(pk=id)
    if tasks:
        task = tasks[0]
        task.do_export()
Exemple #2
0
def export_sms_task(id):
    """
    Export messages to a file and e-mail a link to the user
    """
    tasks = ExportMessagesTask.objects.filter(pk=id)
    if tasks:
        task = tasks[0]
        task.do_export()
Exemple #3
0
def export_contacts_task(id):
    """
    Export contacts to a file and e-mail a link to the user
    """
    tasks = ExportContactsTask.objects.filter(pk=id)
    if tasks:
        task = tasks[0]
        task.do_export()
Exemple #4
0
def export_flow_results_task(id):
    """
    Export a flow to a file and e-mail a link to the user
    """
    tasks = ExportFlowResultsTask.objects.filter(pk=id)
    if tasks:
        task = tasks[0]
        task.do_export()
Exemple #5
0
def export_contacts_task(id):
    """
    Export contacts to a file and e-mail a link to the user
    """
    tasks = ExportContactsTask.objects.filter(pk=id)
    if tasks:
        task = tasks[0]
        task.do_export()