http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object

current.request, response, etc

On Tue, Mar 14, 2017 at 4:40 PM, Richard Vézina <[email protected]
> wrote:

> You can pass T() to module or use current.T(), I think the later is the
> proper way to do now as current wasn't existing before we had to pass
> request, T(), etc...
>
> http://web2py.com/books/default/chapter/29/04/the-core#API
>
> "Other objects and modules are defined in the libraries, but they are not
> automatically imported since they are not used as often.
>
> The core API entities in the web2py execution environment are request,
> response, session, cache, URL, HTTP, redirect and Tand are discussed
> below."
>
>
> Then a little further :
>
>
>
> On Tue, Mar 14, 2017 at 3:23 PM, Lars <[email protected]> wrote:
>
>> Actually it comes from T, the issue remains even with no xml() or XML
>> involved.
>>
>> Sorry but I reduced the function to the wrong line : I had a T =
>> current.T at the beginning of get_dashboard() which
>> deletion didn't suppress the issue.
>>
>> It seems that an involuntary (my bad) spelling of the returned string
>> (message='Lorat ..') created multiple versions of the message in LANG.py
>> which then create a bad dictionary that contains different possible
>> translations for the same item in uwsgi cache.
>>
>> Rewrite (sanitize) lang.py by hand and restart uwsgi does the trick.
>>
>> Thank you
>>
>>
>>
>> On Tuesday, March 14, 2017 at 1:07:13 AM UTC+1, Richard wrote:
>>>
>>> So the problem is from .xml() than??
>>>
>>> Richard
>>>
>>> On Mon, Mar 13, 2017 at 6:20 PM, Anthony <[email protected]> wrote:
>>>
>>>> No, DIV is in gluon.html.
>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to