However, many of these fields are now defined by SimplePopoloField and ComplexPopoloField - someone could remove twitter_username, for example, which would cause the code problems at the moment.
It would be good to make those sections of code use SimplePopoloField and ComplexPopoloField to determine the columns and values to be included in the CSV files.
At the moment the list of columns to include in CSV output is hardcoded in:
CSV_ROW_FIELDS
PersonExtra.as_dict
(soon to be replaced withPersonExtra.as_list_of_dicts
However, many of these fields are now defined by
SimplePopoloField
andComplexPopoloField
- someone could removetwitter_username
, for example, which would cause the code problems at the moment.It would be good to make those sections of code use
SimplePopoloField
andComplexPopoloField
to determine the columns and values to be included in the CSV files.