On Sun, Mar 22, 2009 at 9:14 AM, Brent Pedersen <[email protected]> wrote:
> it doesnt matter. that argument is just a dictionary of name => class
> to use in the url mapping.
> for that case, it could just be:
>
> {"add": add }
>

rather:
{"add": add, "view": view }



>
>
> On Sun, Mar 22, 2009 at 6:16 AM, fourthdim <[email protected]> wrote:
>>
>> Hi,
>>
>> On the SQLAlchemy cookbook, this line of code is used to instantiate
>> the application:
>>
>> app = web.application(urls, locals())
>>
>> But on all the other tutorials I've seen, globals() is passed to the
>> application function instead of locals(). I was wondering why the
>> SQLAlchemy cookbook was different?
>>
>> With thanks.
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to