BackwardCompatibleChanGo¶
- class chango.concrete.BackwardCompatibleChanGo(main_instance, legacy_instances)¶
Bases:
ChanGo[BackwardCompatibleVersionScanner,VHT,VNT,CNT],GenericAn Implementation of the
ChanGointerface that wraps multiple other implementations ofChanGo. The purpose of this class is to ease transition between different version note formats in a project.- Parameters:
main_instance (
ChanGo) – TheChanGoinstance that should be used for new version notes.legacy_instances (Collection[
ChanGo]) – A collection ofChanGoinstances that should be used for loading older version notes.
- build_github_event_change_note(event, data=None)¶
- build_template_change_note(slug, uid=None)¶
Calls
build_template_change_note()onmain_instance.
- build_version_history()¶
Calls
build_version_history()onmain_instance.
- build_version_note(version)¶
Calls
build_version_note()onmain_instanceor one of the legacy instances depending on the result ofis_available().
- get_write_directory(change_note, version)¶
Calls
get_write_directory()onmain_instance.
- load_change_note(uid)¶
Load a change note with the given identifier. Tries to load the change note from the main chango first and then from the legacy changos.
- property scanner¶
The
BackwardCompatibleVersionScannerinstance that is used by thisBackwardCompatibleChanGo.Hint
The scanner is a composite of the scanners of
main_instanceandlegacy_instance.