[web2py] Re: smartgrid tampering with url in browser

2017-06-21 Thread T.R.Rajkumar
Yes, Anthony now with user_signature = True prevents tampering of urls generated by smartgrid. This is when I use auth and signup and then call the grid. But in my app I am using custom login form with user credentials from a legacy table. Can I achieve the same result with custom login form? As

[web2py] Newbie question about github / trunk

2017-06-21 Thread Karoly Kantor
I raised an issue in github about Google Cloud SQL ( https://github.com/web2py/web2py/issues/1613 ), and I received a request to test the new code in trunk. I have never used trunk and I have no idea where to find it, can someone point me to the right direction, please? Thanks. -- Resources:

[web2py] Re: Newbie question about github / trunk

2017-06-21 Thread 黄祥
in http://web2py.com/init/default/download you can see there are several links for tester (trunk) e.g. for source code https://mdipierro.pythonanywhere.com/examples/static/nightly/web2py_src.zip best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

[web2py] Re: Newbie question about github / trunk

2017-06-21 Thread Karoly Kantor
Sorry I don't get it. The code under that link seems old to me, the particular pdal adapter file I am interested in is from 2016 May 10. On Wednesday, June 21, 2017 at 10:05:03 AM UTC+2, 黄祥 wrote: > > in http://web2py.com/init/default/download you can see there are several > links for tester (tr

[web2py] google_adapters.py vs google.py

2017-06-21 Thread Karoly Kantor
I am using a web2py version from http://web2py.com/init/default/download, column "for normal users", "source code". I am under the impression that this is the latest official stable release. In gluon/packages/pdal/adapters it has a file named *google_adapters.py*. Now I am trying to test a fix

[web2py] web2py_component does not work with https...

2017-06-21 Thread António Ramos
hello i noticed that if i switch to https my pages does not load the components using the web2py_component function Is this true? regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] user register form does not submit. Keeps reloading

2017-06-21 Thread António Ramos
Hello i´m trying to create a user but the register form does not submit and reloads itself on submit. Also i tried the "Request reset password" for another user and it also keeps reloading when submitting. Any ideas? how do i debug this issue ? regards António -- Resources: - http://web2py.com -

[web2py] we2admin tables

2017-06-21 Thread Maurice Waka
Its nice to use web2admin to manage groups, permissions etc. I note that i have another table created: dbhome = DAL('sqlite://healthhome.db', folder='/home/name/web2py') dbhome.define_table('home', Fields...) I cant see this table in the web2admin tables shown, and I want to add permissions to

[web2py] Re: we2admin tables

2017-06-21 Thread 黄祥
i think you can add permission with auth.add_permission() ref: http://web2py.com/books/default/chapter/29/09/access-control best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: user register form does not submit. Keeps reloading

2017-06-21 Thread Leonel Câmara
Maybe a field isn't validating and not showing the error on the form. Would need to see some code to know what the problem is. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: web2py_component does not work with https...

2017-06-21 Thread Leonel Câmara
The browser will block it if the request is not HTTPS too. -- 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 subsc

[web2py] Re: New site on web2py

2017-06-21 Thread Ian Ryder
Thanks Massimo for making the building of it much easier than it might have been - I appreciate the blood, sweat and tears that goes into pulling something like web2py together. Good luck with the new version On Tuesday, 20 June 2017 18:16:55 UTC+2, Massimo Di Pierro wrote: > > Nice site. congra

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
Leonel you just confused me again... web2py_component works with Http web2py_component does not work with HTTPS*.* In this case how can i use web2py_component ? Regards 2017-06-21 12:25 GMT+01:00 Leonel Câmara : > The browser will block it if the request is not HTTPS too. > > -- > Resources: >

Re: [web2py] Re: Email from text field while preserving the text format

2017-06-21 Thread Serge Bourgeois
Finally, I could find the solution to my first question. It is in fact very esay. Here is my receipe: Assuming that the content of the text field is in your local variable my_text_field_content, simply put this in the 'message' variable of the MAIL() function from gluon.tools: message = (my_text

Re: [web2py] Re: Email from text field while preserving the text format

2017-06-21 Thread Richard Vézina
Hello Serge, Yes, I guess your record is consider text so it is quoted... You seems to have find a solution, but you may have a look at XML() it gonna manage escaping and encoding for you... About the other field, if you keep going with you "manual" html tag (without using the web2py helpers) you

[web2py] Re: New site on web2py

2017-06-21 Thread Ron Chatterjee
Is this your personal site or you doing this for a client? -- 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 subs

[web2py] Re: web2py_component does not work with https...

2017-06-21 Thread Leonel Câmara
web2py_component works with https of course, but maybe for some reason the URL it's requesting is not in HTTPS. Can we see your web2py_component call? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] FPDF "ne commence pas par '%PDF-' "

2017-06-21 Thread J-Michel Angers
Hi, A try to write my first PDF report (the user fill a form, manager it, at the end another user print this order). All the test I read in this forum or in the documentation alwyas end with "Le fichier ne commence pas par '%PDF-' Local\EWH-3508-0 " First test : from gluon.contrib.fpdf impo

[web2py] Re: user register form does not submit. Keeps reloading

2017-06-21 Thread Anthony
If the form doesn't submit but no errors appear, that could mean the _formkey check is failing, which would typically happen if cookies are disabled. If that's not the issue, we probably need to see some code. Anthony On Wednesday, June 21, 2017 at 5:25:43 AM UTC-4, Ramos wrote: > > Hello i´m t

[web2py] Re: we2admin tables

2017-06-21 Thread Anthony
Are you talking about https://github.com/rif/web2admin? If so, in a model file that runs after the plugin's model file, you can do: plugins.web2admin.dbs = (db, dbhome) The default value for the above is set to (db, ) at https://github.com/rif/web2admin/blob/master/models/plugin_web2admin/plugi

[web2py] Re: google_adapters.py vs google.py

2017-06-21 Thread Anthony
If the change is small, you could simply try manually replicating the change in your google_adapters.py file. Otherwise, the simplest option would probably be to just create a separate installation of web2py from Github via: git clone --recursive g...@github.com:web2py/web2py.git Anthony On W

[web2py] Re: Newbie question about github / trunk

2017-06-21 Thread Anthony
That just means test the master branch on Github. You can get it via: git clone --recursive g...@github.com:web2py/web2py.git Of course, you need Git installed. Anthony On Wednesday, June 21, 2017 at 3:53:55 AM UTC-4, Karoly Kantor wrote: > > I raised an issue in github about Google Cloud SQL (

Re: [web2py] Re: user register form does not submit. Keeps reloading

2017-06-21 Thread António Ramos
Working now... dont know what happened... thank you 2017-06-21 16:26 GMT+01:00 Anthony : > If the form doesn't submit but no errors appear, that could mean the > _formkey check is failing, which would typically happen if cookies are > disabled. If that's not the issue, we probably need to see som

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
???PessoasCarregar para atualizar... Obrigado :) 2017-06-21 16:17 GMT+01:00 Leonel Câmara : > web2py_component works with https of course, but maybe for some reason the > URL it's requesting is not in HTTPS. Can we see your web2py_component call? > > -- > Resources: > - http://web2py.com > - h

[web2py] Re: web2py_component does not work with https...

2017-06-21 Thread Leonel Câmara
Humm that should actually work, although I would recommend using URL, instead of hardcoding the URL. The reason for the failure must be something else. Maybe an insecure cookie or something, are any tickets generated by web2py? What error do you get in the browser console? -- Resources: - htt

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
No tickets and no console errors i will try URL 2017-06-21 17:49 GMT+01:00 Leonel Câmara : > Humm that should actually work, although I would recommend using URL, > instead of hardcoding the URL. > > The reason for the failure must be something else. Maybe an insecure > cookie or somethin

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
I already was using URL {{if 'kpi' in locals():}} {{for x in kpi:}} {{url=URL('kpi',x['kpi']+'.load')}} {{setwait="$('#inner{0}').attr('class', 'fa fa-hourglass-end');".format(x['kpi']) }} {{setclick="web2py_component('{0}', target='{1}')".format(url,x['kpi']) }} {{click=setwait+setclick}}

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
First i see this [image: Imagem inline 1] Then i click and i get [image: Imagem inline 2] Here the web2py_component should load the component but it doesnt... this is the result of loading the component. It works with http and does not work if i switch to https [image: Imagem inline 3] 2017-0

[web2py] Re: web2py_component does not work with https...

2017-06-21 Thread Leonel Câmara
Can visit your website using https, then open a browser console go to the network tab, and show me what appears there when you click the button? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] Re: sitemap.xml

2017-06-21 Thread Ron Chatterjee
Which directory sitemap.xml should be placed at? I am guessing under the app directory? On Wednesday, May 15, 2013 at 6:26:58 PM UTC-4, Omi Chiba wrote: > > You're right. The web site I previously posted create the index up to > controller level. I think it's OK for now. > > On Wednesday, May

[web2py] Re: smartgrid tampering with url in browser

2017-06-21 Thread Anthony
The user_signature functionality expects auth.hmac_key in the session, so, you could add something like the following in a model file: from gluon.storage import Storage from gluon.utils import web2py_uuid if not 'auth' in session: session.auth = Storage(hmac_key=web2py_uuid()) Anthony On We

[web2py] Re: New site on web2py

2017-06-21 Thread Ian Ryder
Hi Ron, we've started up a company, I'm one of the founders On Wednesday, 21 June 2017 16:54:00 UTC+2, Ron Chatterjee wrote: > > Is this your personal site or you doing this for a client? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Re: reddit clone - foreign key constraint failed

2017-06-21 Thread YingJun li
This is help, thank you. On Tuesday, December 23, 2014 at 4:33:54 PM UTC+8, William Chen wrote: > > Hi Chris, I had the same problem and found this thread when I was > searching for a solution. > > The solution is to manually create 2 or 3 comments using appadmin. > > If table B references table

[web2py] Re: auth.settings.registration_requires_approval has no effect

2017-06-21 Thread Learning Everything
jklkl On Wednesday, August 19, 2015 at 6:52:32 PM UTC+5:30, Karl-Thomas Schmidt wrote: > > Hi@ all, > > Having this lines in db.py > auth = Auth(db) > auth.settings.registration_requires_approval = True > auth.settings.login_after_registration = False > a new registration immediatly logs in

[web2py] Looking for consultant for short term engagement to help with our aging web2py app

2017-06-21 Thread charlie
Hello, I'm looking for someone who has experience with scaling a web2py application. We are running into issues with the scheduler and the various fallout from that. There are some challenges around our hosting environment I'll discuss further with any potentially interested party. The contrac

[web2py] Re: sitemap.xml

2017-06-21 Thread Ian Ryder
def sitemap(): # Import Os and Regex import os from gluon.myregex import regex_expose # Finding You Controllers ctldir = os.path.join(request.folder, "controllers") ctls = os.listdir(ctldir) # Excluding The appadmin.py and the Manage.py

[web2py] Re: Signing in / register from React Native to Web2py?

2017-06-21 Thread Oasis Agano
Hello, did you find the way of doing this i want to do the same thing in react native On Tuesday, March 14, 2017 at 12:06:31 AM UTC+2, Mika Sjöman wrote: > > Hi > > After extensive searching in the forum, docs and the internet, I feel that > I can post the question here. I am building a React Na

[web2py] Re: New site on web2py

2017-06-21 Thread Ron Chatterjee
+1 -- 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 uns

[web2py] Re: smartgrid tampering with url in browser

2017-06-21 Thread T.R.Rajkumar
I put the below code in my model file amc.py from gluon.storage import Storage from gluon.utils import web2py_uuid if not 'auth' in session: session.auth = Storage(hmac_key=web2py_uuid()) But now when in run http://127.0.0.1:8000/web_ocms/amc/new_contract I get this error. Error ticket for

[web2py] Re: smartgrid tampering with url in browser

2017-06-21 Thread Dave S
On Wednesday, June 21, 2017 at 10:06:05 PM UTC-7, T.R.Rajkumar wrote: > > I put the below code in my model file amc.py > > from gluon.storage import Storage > from gluon.utils import web2py_uuid > if not 'auth' in session: > session.auth = Storage(hmac_key=web2py_uuid()) > > But now when in