Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Perfect, Chrome support is set by default, I guess Firefox will do the same un the next versión, currently 59.1 still needs manual activation for this feature. El sáb., 24 de mar. de 2018 18:43, Gualter Portella escribió: > Thanks, Marco. > > It was just a browser support issue with firefox. >

[web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Gualter Portella
Thanks, Marco. It was just a browser support issue with firefox. Em sexta-feira, 23 de março de 2018 16:07:26 UTC-3, marco mansilla escreveu: > > Just in case anyone is interested I have uploaded a simple test app with > VueJS as modules in the browser. > > Did it to test and see how it works,

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Oh, and check browsers support, Firefox needs the extra step mentioned in the readme file. El sáb., 24 de mar. de 2018 12:37, Gualter Portella escribió: > Thank you for the initiative! I am looking forward to learning vue.js and > using it together with web2py. One minor problem is that I am not

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Hace you checked the browsers developer console? You have todo edit/create files inside yava/dev/src and run grunt uglify or just grunt since the default task is watch and minify to static/vue. Marco. PS. Later this afternoon will upload a new branch with no grunt nor minification. El sáb., 24

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Gualter Portella
Thank you for the initiative! I am looking forward to learning vue.js and using it together with web2py. One minor problem is that I am not still getting the message Into the index page correctly. It only comes in the form of ${message}. What I might be doing wrong? Cheers -- Resources: - http

Re: [web2py] Re: How to escape apostrophes in view.html

2018-03-24 Thread Maurice Waka
I must say am really greatfull for your response. Amazingly, as soon as I used the '...sanitize=True'statement, the error (problem) is gone! Am using chromium browser, in Ubuntu 16.04 LTS. Let me be really sure tat its gone then will revert to you Kind regards On Sat, Mar 24, 2018 at 3:57 PM, Anth

Re: [web2py] Re: How to escape apostrophes in view.html

2018-03-24 Thread Anthony
First, do not use XML(...) with user-generated content, as that is a serious cross-site scripting vulnerability. At least use XML(..., sanitize=True). Which browser are you using? Browsers should be able to display an unescaped apostrophe. Can you show the raw HTML generated by your app where

Re: [web2py] Re: How to escape apostrophes in view.html

2018-03-24 Thread Maurice Waka
Hi Sorry I couldn't reply earlier, net work issues. Am not very conversant with CSS, still in the learning stage as I work it out. So, from the controller: question = db(db.answers.author == auth.user.id).select(orderby=~db.answers.created_on,limitby=(2,0)).user query statement answer = db(db