main.csvio package¶
Submodules¶
main.csvio.added_inventory module¶
AddedInventoryHandler and required imports.
-
class
main.csvio.added_inventory.
AddedInventoryHandler
¶ Bases:
main.csvio.csv_interface.CSVHandler
Implements CSVHandler and adds inventory to supplies that already existed in the formulary.
-
read
(upload, campaign)¶ Given an upload file and a campaign to upload to, execute a CSV import. :param upload: :param campaign: :return:
-
write
(response, formulary)¶ Given an HTTPResponse and a formulary object, write out the formulary as a CSV file. :param response: :param formulary: :return:
-
main.csvio.csv_interface module¶
main.csvio.initial_inventory module¶
-
class
main.csvio.initial_inventory.
InitialInventoryHandler
¶ Bases:
main.csvio.csv_interface.CSVHandler
-
read
(upload, campaign)¶
-
write
(response, formulary)¶
-