rattail.sw.locms.changes

rattail.sw.locsms.changes – SMS Deployed Changes

This module contains logic for handling changes deployed from SMS.

rattail.sw.locsms.changes.parse_change_file(path)

Generator which yields data records (contained in the file at path) as dictionary objects, keyed by field name. The file is assumed to be in CSV format, with the first row containing the field names used.

rattail.sw.locsms.changes.process_changes(path)

Handles incoming “deployed changes” from SMS.

This function is designed to be called by the Rattail File Monitor, which of course will call it for each new file that shows up in the monitored folder.

This function is responsible for further monitoring the arrival of these files in such a way that it will know when a deploy changes “batch” of files has been made fully available. When this occurs, it will in turn call any registered processing function(s), and finally delete the change files for the “batch.”

One or more custom processing functions may be configured thusly:

[rattail.sw.locsms]
changes.process_funcs = ['rattail.mamajeans.locsms:process_changes']

Previous topic

rattail.sw.locms

Next topic

rattail.sw.locms.classes

This Page