<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Looking at your pastebin code, it seems like you're calling the <tt>load_active_projects()</tt>
    function while <i>defining</i> the classes, rather than when you're
    actually using them. So the Python interpreter will be executing <tt>load_active_projects</tt>
    for each of (<tt>ProductionConfig</tt>, <tt>DevConfig</tt>, <tt>QaConfig</tt>)
    <i>before</i> it actually uses the DevConfig class.<br>
    <br>
    You can confirm this by checking the value of <tt>app.config['FLOWBOT_ENV']</tt>
    from your main app.<br>
    <br>
    I don't know how exactly Flask's <tt>config.from_object</tt> works,
    but I think what you want to do would be more like:<br>
    <tt><br>
    </tt><tt>class DevConfig(Config):</tt><tt><br>
    </tt><tt>    FLOWBOT_ENV = 'dev'</tt><tt><br>
    </tt><tt>    # ... other config goes here ...</tt><tt><br>
    </tt><tt>    def __init__(self):</tt><tt><br>
    </tt><tt>        self.PROJECTS =
      load_active_projects(self.FLOWBOT_ENV)</tt><tt><br>
    </tt><tt>        self.SCHEDULED_JOBS =
      load_active_scheduled_jobs(FLOWBOT_ENV)</tt><br>
    <br>
    ...so that your load functions are only called when the class is
    actually instantiated (used).<br>
    <br>
    Sorry I can't into it properly at the moment—tell me how it goes and
    I'll check back tomorrow when I have more time ;)<br>
    <br>
    —Badri/Hippo<br>
  </body>
</html>