On Tue, Jul 23, 2013 at 2:15 PM, Craig Small <[email protected]> wrote:
> I've upgraded turbogears from 2.2 to 2.3 and its seems to be working ok > but I'm getting two odd but non fatal results. > I have some command line scripts using PasteScript and they all have > the following message: > No handlers could be found for logger "tg.configuration.app_config" > > No handlers means just that logging doesn't have any handler setup for output. Usually means that no configuration has been provided for logging. It shouldn't cause any side effect apart that you get that warning. > The second is two errors with my nosetests. > File "rnms/tests/__init__.py", line 35, in setup_db > engine = config['tg.app_globals'].sa_engine > AttributeError: 'NoneType' object has no attribute 'sa_engine' > This is probably because your test didn't load the application and so the config is not available. Check in newly quickstarted TG23 applications the "load_app" function and make sure it's called before setup_db (like in tests/model/__init__.py:setup() in newly 2.3 quickstarted apps) -------------------- >> begin captured logging << -------------------- > tw2.core.middleware: DEBUG: No middleware in place. Queued > 'tw2.forms'->'static/forms.css'(False) registration. > tw2.core.middleware: DEBUG: No middleware in place. Queued > 'tw2.forms'->'static/forms.css'(False) registration. > > This is not an issue at all, it's just TW2 reporting a bug message. It just means that the middleware is not in place yet and so the resources are registered in a queue that will be processed by the middleware when available. It's working as expected -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/groups/opt_out.

