[web2py] Invalid field name although rname is set

2016-11-10 Thread Edwin Haver
Hello, Why do I get the following error message when I have set the rname for that field and have set check_reserved to None? Field: invalid field name: update, use rname for "funny" namesVersion web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Python Python 2.7.12:

[web2py] scheduling multiple tasks

2016-11-10 Thread Nico de Groot
Looking at your code you posted earlier at http://stackoverflow.com/questions/34661782/web2py-function-not-triggered-on-user-request/34895532#34895532 ou have a task running the engine. This task is scheduled by adding it adding it to the scheduler. You can create a second task and add this

[web2py] Re: scheduling multiple tasks

2016-11-10 Thread Dave S
On Thursday, November 10, 2016 at 5:07:16 AM UTC-8, Yebach wrote: > > Hello > > > In my web2py app i am using scheduler. So far I have one task scheduled > which runs a subprocess when called from controler (an external exe > file/application) > > Now i want to add another task which will do

[web2py] Re: I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-10 Thread Dave S
On Wednesday, November 9, 2016 at 9:24:02 PM UTC-8, Mike Stephenson wrote: > > It's messed up. > How so? What does it do? What do you expect it to do? Can you show us how your controller prepares the json? What does your view look like? > Can you help out with a code snippet? Will be of

Re: [web2py] Re: About web2py_component and redirect

2016-11-10 Thread Marco Mansilla
What I did was add a 0 option to select, and the fire a js event with modal, using $.web2py.component works with a small issue, the first time it fires opens and closes a new tab. I will try to share it tonight, maybe someone else could find it useful. El 10 nov. 2016 4:26 AM, "黄祥"

[web2py] auth_hasmembership(["admin","supervisor","auditor"]) ?

2016-11-10 Thread António Ramos
i have a row in a table that want to protect from users i have the field as list:string like this ->["admin","supervisor","auditor"] with auth_requiresmembership(role) i need role to be string , not a list. what is the best solution here? regards António -- Resources: - http://web2py.com -

Re: [web2py] Unit Testing in PyCharm

2016-11-10 Thread 'Roman' via web2py-users
Thank you very much for the links, i will read and report my findings here. Roman Am Mittwoch, 9. November 2016 15:37:52 UTC+1 schrieb Richard: > > Not exactly what you want but it could help you understand testing with > web2py : > > https://github.com/viniciusban/web2py.test > >

[web2py] scheduling multiple tasks

2016-11-10 Thread Yebach
Hello In my web2py app i am using scheduler. So far I have one task scheduled which runs a subprocess when called from controler (an external exe file/application) Now i want to add another task which will do some background work My code in *scheduler.py* till now was def

Re: [web2py] Re: send html emails?

2016-11-10 Thread António Ramos
solved. Thank you 2016-11-10 11:51 GMT+00:00 António Ramos : > nice. > i get a path error > invalid view... > > where is render looking for views? > do i need a controller for the view or can i skip creating it? > > Regards > > 2016-11-10 11:34 GMT+00:00 黄祥

Re: [web2py] Re: send html emails?

2016-11-10 Thread António Ramos
nice. i get a path error invalid view... where is render looking for views? do i need a controller for the view or can i skip creating it? Regards 2016-11-10 11:34 GMT+00:00 黄祥 : > just an idea, why not use response.render, put the html template on there > e.g. >

[web2py] Re: send html emails?

2016-11-10 Thread 黄祥
just an idea, why not use response.render, put the html template on there e.g. row = db(db.test.id == 1).iterselect().first() mail_to = 'a...@a.com' subject = 'test' messages = response.render('templates/mail/test_0.html', dict(row = row) ) mail.send(mail_to, subject, messages) best regards,

[web2py] send html emails?

2016-11-10 Thread António Ramos
Hello i have an html that i want to send via mail.send("",htm("asas") but i need to inject params. I get this error Traceback (most recent call last): File "C:\web2py\gluon\scheduler.py", line 315, in executor result = dumps(_function(*args, **vars)) File