On Wed, Jul 22, 2009 at 6:21 PM, Jonathan Lundell <[email protected]>wrote:

> On Jul 22, 2009, at 4:01 PM, Yarko Tymciurak wrote:
>
> yes - here's what you need to know:
>
> every request that comes into the server, and then kicks off a we2py thread
> starts in main.py, which parses and finds the appropriate applicaition,
> controller and function being requested.   Then, to set up the environment
> for the request (so the controller can do what It needs, e.g. refer to
> appropriate tables, have db connections available, etc.)  main runs the
> files in the application's model folder, and calls the appropriate
> controller function with this environment.
>
> Since the files in models are executed in alphabetical order, if you want
> to ensure that your "global" settings are available for the model files
> also,   a filename in controllers
>
>
> In models, no?
>

Correct  (good - you caught my typo, which means this made sense to you; now
you're on your way! :-)


>
> such as  "0.py"  or "0_setup.py"   (that's a zero)  will accomplish this.
>
> Hope this helps.
>
> - Yarko
>
> On Wed, Jul 22, 2009 at 5:18 PM, Bottiger <[email protected]> wrote:
>
>>
>> And that is my question. Where can I put it so it is a globally
>> accessable variable? I don't think Web2Py has a global configuration
>> file, or does it?
>>
>> On Jul 22, 3:05 pm, Fran <[email protected]> wrote:
>> > On Jul 22, 11:01 pm, Bottiger <[email protected]> wrote:
>> >
>> > > Its useful when you need the full URL.
>> > > I needed this when getting Massimo's OpenID to work. Right now, its
>> > > hardcoded in.
>> >
>> > Well, there's no way that Web2Py can know what this is for sure as
>> > there can eb proxies in front.
>> > This is why it has to be edited manually for
>> > auth.messages.verify_email:
>> http://groups.google.com/group/web2py/browse_thread/thread/4887c684e5...
>> >
>> > F
>>
>>
>
>
>
>
>
>
> >
>

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

Reply via email to