Decrease code redundancy without breaking references

Frank Malina @ vizualbod.com vizualbod at vizualbod.com
Sun Oct 12 15:07:25 CEST 2008


There is the following source structure:

/packages/...
/packages/global_settings.py # this is the global settings file
imported from each client settings file
/clients/...
/clients/client1/settings.py # client specific settings file (see code
above), each client is running in its own process so they never clash
/clients/client2/settings.py
/clients/client3/settings.py
...
Now how to remove the repetitive bork, bork, bork if it relies on the
clients settings.
I am still learning python, help appreciated.




More information about the Python-list mailing list