Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Dave S
On Tuesday, March 31, 2020 at 3:38:34 AM UTC-7, Vlad wrote: > > Is there any example / doc on how to use regexp? It's just mentioned in > the book, but no details and no samples. > > It depends on your db backend and the adapter. For sqlite and the inbox-adapter, there's a python file that

[web2py] jQuery not working with web2py

2020-03-31 Thread Maurice Waka
I have this code below that works well on the demo site: http://jsfiddle.net/Lhg914dc/ {{extend 'layout.html'}} /*QuickReset*/ *{margin:0;box-sizing:border-box;} html,body{height:100%;font:14px/1.4 sans -serif;} article { height: 150vh; } WELCOME (waits 3 sec)

Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Eliezer (Vlad) Tseytkin
I mean, I understand how to use regexp for a simple pattern matching, but here I need to use the "sub" feature. What am I missing? On Tue, Mar 31, 2020, 6:38 AM Eliezer (Vlad) Tseytkin < westgate6...@gmail.com> wrote: > Is there any example / doc on how to use regexp? It's just mentioned in >

[web2py] Embed youtube video in markmin (à la web2py book)

2020-03-31 Thread Jon Subscripted
Hi everyone, I have a part of my website shaped as web2py book. In order to handle long texts in different languages. As you might know content is in *.markmin files that are reprocessed into HTML to be served by a generic controller. I'm trying to embed a youtube video in the *.markmin file. I

[web2py] Re: letsencrypt google appengine with web2py

2020-03-31 Thread Jacinto Parga
It is no longer necessary as Google appengine gives autogenerated ssl certificates if you want: [image: settings-mereba.png] El viernes, 7 de junio de 2019, 3:59:29 (UTC+2), Daniel Guilhermino escribió: > > Dude ... thanks a lot! After hours, this answer helped me a lot! > > Many... Many

Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Eliezer (Vlad) Tseytkin
Is there any example / doc on how to use regexp? It's just mentioned in the book, but no details and no samples. On Tue, Mar 31, 2020, 3:35 AM Val K wrote: > re.sub() is invoked at python level not at db level. You should use > db.field.regexp(pattern) > > -- > Resources: > - http://web2py.com

[web2py] Re: Python3 GAE 502 Error

2020-03-31 Thread Jacinto Parga
Is there any main.py example to deploy web2py in GAE with python 3.7 as it is in py4web? El domingo, 21 de abril de 2019, 18:32:33 (UTC+2), Jacinto Parga escribió: > > Or may be what i need is just to know what is the entrypoint in the > app.yalm for my web2py application > > > runtime:

[web2py] Error importing Russian characters from csv file

2020-03-31 Thread aabelyakov
When importing data (russian characters) from a .csv-file into a table, an error occurs: 'ascii' codec can't decode byte 0xd0 in position 65: ordinal not in range(128). Standalone PyDAL works fine! = import locale

[web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Val K
Also you can pass raw sql string like db.field.on(raw_sql_string) -- 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

[web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Val K
re.sub() is invoked at python level not at db level. You should use db.field.regexp(pattern) -- 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