コード例 #1
0
ファイル: tasks.py プロジェクト: AxisOfEval/rapidpro
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()
コード例 #2
0
ファイル: tasks.py プロジェクト: xuanhan863/rapidpro
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()
コード例 #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()
コード例 #4
0
ファイル: tasks.py プロジェクト: xuanhan863/rapidpro
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()
コード例 #5
0
ファイル: tasks.py プロジェクト: austiine04/rapidpro
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()