Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Using base_vendor.py and base_cms.py

Jordan Banasik edited this page Nov 18, 2019 · 2 revisions

Each CMS and vendor object can reference each other with self.vendor and self.cms respectively. The purpose of using a generic CMS object is it will determine the appropriate CMS for each vendor and choose that. This allows for easier/cleaner code in the execution.

Example:

cms_object = CMS(vendor).cms
vendor_object = Vendor(vendor)
cms_object.vendor = vendor_object
vendor_object.cms = cms_object

Clone this wiki locally