hm. the config object i now pass into make_map doesn't seem to be initialized from the config file. does this change mean that i can't use "from pylons import config" anymore?
On Sat, Feb 6, 2010 at 6:48 PM, Ben Bangert <[email protected]> wrote: > On Feb 6, 2010, at 7:23 AM, Robert Forkel wrote: > >> i'm a bit confused, though. i just upgraded (from 0.9.7 via 0.10b1) >> and found the changes to the config initialization described here >> (http://pylonshq.com/docs/en/1.0/upgrading/) to be unneccessary >> (wrong, actually - when applying them, my app wouldn't start anymore >> because some config values i use in routing.py could not be found). > > Ah, I see the problem, there was another change to make. In environment.py, > change the make_map call to: > config['routes.map'] = make_map(config) > > And in routing.py: > def make_map(config): > > That way the config will be present in your routing.py. > > Cheers, > Ben > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
