I'm developing an application that is to be run in two separate offices. The UI needs to be consistent, however some of the buttons on the UI will change depending on which office is running the application along with the functional logic behind those buttons. Which design pattern is recommended to code the following in Python? The aim is to be able to re-use components for the application being developed for both offices without having to maintain duplicate code.
To help illustrate with a very simple example:
In the attached screenshot - if the application is being run in Office A only show "Contact Us" with it's own code logic, however if the application is running in Office B, show both "Contact Us" and "Lets work together" with their own separate code logic different from Office A.
Thanks
Aucun commentaire:
Enregistrer un commentaire