What needs to be changed?
Each new calendar (holidayprofile) in its own file.
Put them into their own directory.
import all files from that directory
Why?
Each profile can be easily changed, identified, new ones added, etc
Who and what benefits from the change?
future calendars can just be dropped into that directory
How can it be done?
add subfolder and add an __init__.py file to that folder
eventually the __all__ must be defined to include all the files in the
directory, e.g. dynamically loaded. Check if pkgutil helps
Also check
http://stackoverflow.com/questions/1057431/loading-all-modules-in-a-folder-in-py
thon
Original issue reported on code.google.com by
thomas.h...@gmail.comon 3 Dec 2012 at 11:15