Skip to content
Nick Worden edited this page Jan 4, 2019 · 1 revision

PFIF

Adding a PFIF version

  • pfif.py
    If you're adding pfif <major>.<minor>, in pfif.py create a new pfif object named PFIF_<major>_<minor> with the fields for person and note filled in. Basically, just cut and paste the definition for the previous version and update the fields.
    If you want the new version to be the default then update the value of PFIF_DEFAULT_VERSION
    If there's a new field that requires special formatting then add it to the SERIALIZERS map.
  • test_pfif.py
    Add tests for the new fields.
  • atom.py
    Add new ATOM_PFIF_<major>_<minor> version like the PFIF version. Make sure that the changes to pfif.write_* covers all the new stuff.
  • server_tests.py
    Add tests for feeds and atom.
  • feeds.py
    feeds.py should not need to be modified.
Clone this wiki locally