Skip to content

Reorganise files for calendars #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
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.com on 3 Dec 2012 at 11:15

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions