Hello Anand,

thanks for the quick reply. Your suggestion works great! 

Thanks!

Kind Regards
Bernhard

On Monday, August 26, 2013 4:29:47 PM UTC+2, Anand wrote:
>
>
> On Mon, Aug 26, 2013 at 7:51 PM, Bernhard B <[email protected]<javascript:>
> > wrote:
>
>> Hello,
>>
>> i searched the news group, but didn't find any answer to this question. 
>> In my application I have a global instance. In debug mode, every time a 
>> make changes to my application, a new global instance is created. Is there 
>> a way/ some sort of hack to change this behavior, so that the instance is 
>> only created at start up? 
>>
>
> Simplest hack is:
>
> if not hasattr(web, "_initialized"):
>     initialize_global_state()
>     web._initialized = True
>
> Anand
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to