[web2py] Re: XML pickle/unpickle

2015-09-17 Thread Maxim
t 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

[web2py] Re: XML pickle/unpickle

2015-09-16 Thread Maxim Hrustalev
> 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

[web2py] Re: We do not delete posts

2015-09-16 Thread Maxim Hrustalev
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 >>

[web2py] Re: We do not delete posts

2015-09-16 Thread Maxim Hrustalev
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

[web2py] XML pickle/unpickle

2015-09-16 Thread Maxim Hrustalev
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))

Re: [web2py] Re: prettydate ago is not translated

2015-07-15 Thread Maxim Hrustalev
Don't you try ti access attribute 'year' of your prettydated expire_date somewhere in your code? On Sunday, July 12, 2015 at 12:10:09 PM UTC+3, icodk wrote: > > Thanks Maxim, > I tried : > db.place.expire_date.represent= lambda value,row: prettydate(value,T=T) >

Re: [web2py] Re: prettydate ago is not translated

2015-07-11 Thread Maxim Hrustalev
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

[web2py] XML pickle

2015-07-09 Thread Maxim Hrustalev
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,