Module mod_import_csv

Import tab or comma separated files.

Authors: Marc Worrell (marc@worrell.nl).

Description

Import tab or comma separated files. There must be an import definition for the file to be accepted.

Function Index

can_handle/3Check if we can import this file.
event/2Uploading a CSV file through the web interface.
inspect_file/1Inspect the first line of a CSV file, extract the column headers.
manage_schema/2
observe_admin_menu/3Add menu item to 'Content' admin menu.
observe_dropbox_file/2Handle a dropbox file when it is a tsv/csv file we know.

Function Details

can_handle/3

can_handle(OriginalFilename, DataFile, Context) -> any()

Check if we can import this file

event/2

event(Submit, Context) -> any()

Uploading a CSV file through the web interface.

inspect_file/1

inspect_file(Filename::file:filename_all()) -> {ok, #filedef{}} | {error, term()}

Inspect the first line of a CSV file, extract the column headers

manage_schema/2

manage_schema(What, Context) -> any()

observe_admin_menu/3

observe_admin_menu(Admin_menu::#admin_menu{}, Acc::list(), Context::z:context()) -> list()

Add menu item to 'Content' admin menu

observe_dropbox_file/2

observe_dropbox_file(Dropbox_file, Context) -> any()

Handle a dropbox file when it is a tsv/csv file we know.


Generated by EDoc