Can anyone explain why this code is included in html.py:
667 ### important to allow safe session.flash=T()
668
669
670 def XML_unpickle(data):
671 return marshal.loads(data)
672
673
674 def XML_pickle(data):
675 return XML_unpickle, (marshal.dumps(str(data)),)
676 copy_reg.pickle(XML,
To translate prettydate output you have to pass translation function as
argument: prettydate(my_date, T=T).
On Wednesday, July 8, 2015 at 12:40:55 AM UTC+3, icodk wrote:
>
> Thanks for your help.
> My editor (web2py web interface, Notepad++,Visual Studio) should be able
> to find 'ago' in any s
The problem is that I get the following error
> 'str' object has no attribute 'year'
> The field is defined as:
>
> Field('expire_date','datetime',label=T('expire_date'),writable=False,default=request.now)
> If I don't add the
Does anyone with deep knowledge of web2py know why this code is included in
html.py
667 ### important to allow safe session.flash=T()
668
669
670 def XML_unpickle(data):
671 return marshal.loads(data)
672
673
674 def XML_pickle(data):
675 return XML_unpickle, (marshal.dumps(str(data))
Dear moderators,
How many posts do I need to post to be added to white list? Is it just bad
luck or what?
Thnx
On Monday, July 20, 2015 at 11:08:57 AM UTC+3, Massimo Di Pierro wrote:
> We never delete posts from users, unless the users ask (because they
> accidentally post the server password
in this time. Finger crossed!
>
>
> On Wednesday, 16 September 2015 08:42:58 UTC-5, Maxim Hrustalev wrote:
>>
>> Dear moderators,
>>
>> How many posts do I need to post to be added to white list? Is it just
>> bad luck or what?
>>
>> Thnx
>>
> 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
7 matches
Mail list logo