Пример #1
0
def csvdata(cmdline):
    survey = model.survey.Survey.load(cmdline['project'])
    import csvdata
    if cmdline['direction'] == 'export':
        return csvdata.csvdata_export(survey, cmdline)
    elif cmdline['direction'] == 'import':
        return csvdata.csvdata_import(survey, cmdline)
    else:
        raise AssertionError
Пример #2
0
def csvdata(cmdline):
    survey = model.survey.Survey.load(cmdline['project'])
    import csvdata
    if cmdline['direction'] == 'export':
        return csvdata.csvdata_export(survey, self.obj.survey.new_path('data_%i.csv'), cmdline['filter'])
    elif cmdline['direction'] == 'import':
        return csvdata.csvdata_import(survey, cmdline['file'])
    else:
        raise AssertionError
Пример #3
0
def csvdata(cmdline):
    survey = model.survey.Survey.load(cmdline['project'])
    import csvdata
    if cmdline['direction'] == 'export':
        return csvdata.csvdata_export(survey, survey.new_path('data_%i.csv'), cmdline['filter'])
    elif cmdline['direction'] == 'import':
        return csvdata.csvdata_import(survey, cmdline['file'])
    else:
        raise AssertionError