I did yesterday, issue #1067.
I think the solution may be to replace:
671 return marshal.loads(data)
with
671 return XML(marshal.loads(data))
On Thursday, September 17, 2015 at 9:11:58 PM UTC+3, Massimo Di Pierro
wrote:
>
> Weird. Can you open a ticket and I will test it asap?
>
> On Wednesday, 16 September 2015 13:31:40 UTC-5, Maxim wrote:
>>
>>
>> Why do you want comment it out anyway?
>>>
>>
>> This:
>>
>>> The reason is that is allows storing variables that contain XML('.....')
>>> in sessions. That is useful to deal with flash messages that contain more
>>> than just text.
>>
>>
>> I want to store XML in session flash message, like Massimo stated, but in
>> fact this code prevents to do it. If I try
>> session.flash = XML('Hello <b>world</b>')
>> the output is "Hello <b>world</b>", and if I comment out the code above,
>> the output is as desired "Hello *world*".
>>
>
--
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.