Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I haven't tested, just an idea, instead of adding a new parameter, what about checking current.request.ajax ? Paolo 2014-03-06 0:59 GMT+01:00 Tim Richardson : > I've made the PR, but my knowledge of jquery/javascript is paleolithic so > Paolo is would be great if you can look at it. > It works

[web2py] Re: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Tim Richardson
> That's because when you queue a task you don't have (yet) a scheduler_run > record. Moreover returning the result of the task to a "queueing" operation > is a tiddle bit a poor design (it's an async process!). However, there's > mysched.task_status(ref, output=False) > Ok, it's not document

[web2py] Re: recaptcha in custom forms

2014-03-05 Thread Tim Richardson
I submitted a patch which allows us to use recaptcha's ajax API. This was the only way I could get it to work in a LOAD component. It may solve other problems. You add ajax=True to the Recaptcha constructor. It's not in trunk yet. The related issue is http://code.google.com/p/web2py/issues/det

[web2py] Re: trying to help young son learn Python, and...

2014-03-05 Thread Anthony
> > 2. does, or will, web2py support python 3.x any time soon? > Not likely, due to the fact that it would break backward compatibility. There have been a couple of efforts to create a working Python 3 fork, but the fact is there isn't yet much demand for a Python 3 version, so these forks hav

[web2py] Re: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Anthony
But I believe you should be able to define tables out of order (i.e., define the referenced table after the referencing table). On Wednesday, March 5, 2014 7:55:13 PM UTC-5, Tim Richardson wrote: > > Model files in the same directory execute alphabetically; it seems that > you are seeing correct

[web2py] Re: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Tim Richardson
Model files in the same directory execute alphabetically, but in this case it seems that you are seeing correct behaviour. This behaviour predates v2.8.2 but quite some time as far as I know. the book says Models in the same folder/subfolder are executed in alphabetical order. https://do.gro

[web2py] I'm speaking at Melbourne PUG about web2py, 30 mins. Tips/e.g. slides?

2014-03-05 Thread Tim Richardson
I'm talking at the Melbourne PUG early April re web2py. Audience is quite academic (sciences), about 40 to 50 people usually. The talk is about 30 minutes. I plan to cover project history, DAL, execution model, web2py in practice (views, admin app, authentication, widgets and SQLFORM.grid, def

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I've made the PR, but my knowledge of jquery/javascript is paleolithic so Paolo is would be great if you can look at it. It works. https://github.com/web2py/web2py/pull/389 On Thursday, 6 March 2014 07:12:11 UTC+11, Tim Richardson wrote: > > > > On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo

[web2py] Re: DAL ignoring accents

2014-03-05 Thread Wonton
Thank you Massimo, I'll do that. On Monday, March 3, 2014 1:19:08 AM UTC+1, Massimo Di Pierro wrote: > > Not really. you have to create a computed filed that discards accents and > search the computed field instead of the original field. > > > On Saturday, 1 March 2014 04:34:33 UTC-6, Wonton wrot

[web2py] Re: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Niphlod
On Wednesday, March 5, 2014 3:49:22 PM UTC+1, Andrey K wrote: > > Greetings, > I am using web2py scheduler and looking the way to get > scheduler_run.traceback and scheduler_run.run_result for reporting. > Any idea how I can get it? > After I setting up the task by: > task=scheduler.queue_task(

[web2py] Re: trying to help young son learn Python, and...

2014-03-05 Thread Carlos Zenteno
One more vote for PythonAnywhere. Easy to setup and to use. I can recommend to you a class at codecademy for the fundamentals: http://www.codecademy.com/tracks/python and then in coursera.org: An Introduction to Interactive Programming in Python https://www.coursera.org/course/interactivepyt

[web2py] Re: Great summary of web2py

2014-03-05 Thread Avi A
I think that there on the features list, frameworks seekers would love to hear about the amazing web2py ajax and component functions and all the eco method as part of the awesome mvc system. On Wednesday, March 5, 2014 6:23:14 PM UTC+2, Jorge Pereira wrote: > > VP writes: > > > > > > > > >

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo Valleri wrote: > > I run a couple of tests and I got the same issues, I am try to figure out > why the js library (recaptcha_canary.js) is not loaded at all > > Paolo > > I've opened issues 1888 and I've worked out how to fix it (see code on the

[web2py] Re: wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Austin Taylor
Thanks, Anthony. That worked, but I had to remove the quotes around the search when you click new On Wednesday, March 5, 2014 1:28:15 PM UTC-5, Anthony wrote: > > Assuming you mean SQLFORM.grid, you should be able to use the standard SQL > % and _ wildcard characters. > > Anthony > > On Wednesda

[web2py] Re: web2py v2.9.3: KeyError: 'Cannot resolve reference subject_subject in contract_contract definition'

2014-03-05 Thread Donatas Burba
Nothing changed after v2.9.4 update. Any ideas or remarks? 2014 m. kovas 4 d., antradienis 19:46:44 UTC+2, Donatas Burba rašė: > > > After upgrading to v2.9.3 (from 2.8.2), error is thrown: > > Traceback (most recent call last): > File "/vagrant/grand/web2py/gluon/restricted.py", line 217, in re

[web2py] Re: appadmin redirects to admin on first try?

2014-03-05 Thread Anthony
Changing the admin login expiration only affects the admin app itself, not appadmin, which delegates access to admin. If you want to change the expiration for appadmin, then you'll have to edit appadmin.py at https://github.com/web2py/web2py/blob/master/applications/welcome/controllers/appadmin

[web2py] Re: wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Anthony
Assuming you mean SQLFORM.grid, you should be able to use the standard SQL % and _ wildcard characters. Anthony On Wednesday, March 5, 2014 12:21:16 PM UTC-5, Austin Taylor wrote: > > I've looked through the book and forum and can't seem to find any > reference to a wildcard search when using t

[web2py] wildcard for grid=SQLFORM(db.tablename)??

2014-03-05 Thread Austin Taylor
I've looked through the book and forum and can't seem to find any reference to a wildcard search when using the SQLFORM layout that web2py provides. Does anyone know of a wildcard search you can use like %? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] Re: Great summary of web2py

2014-03-05 Thread Jorge Pereira
VP writes: > > > > Specifically, to attract newbies, I would recommend making Chapter 3 > of the book to be better than it currently is. Right now, it's very > good. But I think there are places that can be improved. This > chapter is where web2py can be/should be showcased to attract the

[web2py] Re: appadmin redirects to admin on first try?

2014-03-05 Thread User
No I am not being redirected to admin login page first. I have edited admin/models/0.py: EXPIRATION = 48 * 60 * 60 # logout after 48 hours of inactivity A while could be 24 hours. On Tuesday, March 4, 2014 4:28:38 PM UTC-5, Anthony wrote: > On Tuesday, March 4, 2014 4:06:58 PM UTC-5, User w

[web2py] how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-05 Thread Andrey K
Greetings, I am using web2py scheduler and looking the way to get scheduler_run.traceback and scheduler_run.run_result for reporting. Any idea how I can get it? After I setting up the task by: task=scheduler.queue_task(test_js_task,pvars=dict(x)) I can get only task.id and task.uuid. What is the

Re: [web2py] Re: Date format and date picker

2014-03-05 Thread Gael Princivalle
Sorry for that. My language Chrome setting was with "English" as first. Now with Italian that's ok. 2014-03-05 12:08 GMT+01:00 mcamel : > Very strange. This works for me at Chromium Version 32.0.1700.107 Ubuntu > 12.04: > > def test_date(): > T.force('it') > > db = DAL('sqlite:memory:')

[web2py] Re: Nested SQLform.factory

2014-03-05 Thread Anthony
I don't think HTML allows nested forms. On Wednesday, March 5, 2014 1:29:57 AM UTC-5, xgp.l...@gmail.com wrote: > > Hi all, > > I have a Nested SQLform.factory inside a custom fields form. > > My code: > > form = FORM(TABLE(TR("Numero de > documento:",INPUT(_type="text",_name="noid",requires=IS_N

Re: [web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
I run a couple of tests and I got the same issues, I am try to figure out why the js library (recaptcha_canary.js) is not loaded at all Paolo 2014-03-05 12:17 GMT+01:00 Tim Richardson : > > > On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote: >> >> Hi, >> Is it working without pl

[web2py] Re: ticket2db is not working

2014-03-05 Thread Niphlod
agreed that it's a PITA, but if you copy table files over all the servers, no harm will be done to your app. It's just your "distribution" process that needs to accomodate for .table files instead of leaving the folder empty. On Wednesday, March 5, 2014 11:49:26 AM UTC+1, Rémy Reche wrote: > >

[web2py] Form with multiple choice parts

2014-03-05 Thread Brian Jimenez
Dear all, I've been playing for a while with web2py and read the major part of the book, but still I don't get with the correct answer for my problem. Here it goes: I want to display a form in some view. That form contains a common part (a field 'contact_email') and then three different 'subform

[web2py] Nested SQLform.factory

2014-03-05 Thread xgp . latino
Hi all, I have a Nested SQLform.factory inside a custom fields form. My code: form = FORM(TABLE(TR("Numero de documento:",INPUT(_type="text",_name="noid",requires=IS_NOT_EMPTY()),requires=IS_NOT_IN_DB(db, 'tabla1.noid')), TR("Tipo de documento:" , SQLFORM.factory(Field('ti

[web2py] Re: ticket2db is not working

2014-03-05 Thread Rémy Reche
Thanks for your help. But it is strange that this script expects .table files because, in the case of multiple web2py instances (with multiple servers), you do not have these files on each instance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote: > > Hi, > Is it working without placing it in a component? > have you tried to disable the facebook plugin? I'm just wondering if there > is a correlation between the two. > I removed the facebook plugin but it made no difference.

[web2py] Re: Date format and date picker

2014-03-05 Thread mcamel
Very strange. This works for me at Chromium Version 32.0.1700.107 Ubuntu 12.04: def test_date(): T.force('it') db = DAL('sqlite:memory:') db.define_table('test', Field('d', 'date')) form = SQLFORM(db.test) form.validate() return dict(form=form) At it.py (you can also t

[web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Paolo Valleri
Hi, Is it working without placing it in a component? have you tried to disable the facebook plugin? I'm just wondering if there is a correlation between the two. Paolo On Wednesday, March 5, 2014 10:42:13 AM UTC+1, Tim Richardson wrote: > > > >> "Invalid App Id: Must be a number or numeric strin

[web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I get the recaptacha rendered if I use ajax=False {{=LOAD('default','newsletter_signup.load',ajax=False,ajax_trap=False)}} but form processing doesn't work. that is, form.process().accpeted is never true and neither is form.errors ajax_true does mean that form processing works, but after an er

[web2py] Re: recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
> > "Invalid App Id: Must be a number or numeric string representing the > application id." > > That message is relating to a facebook plugin, it's not the problem with recpatcha -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] recaptcha doesn't work in a component (LOAD)

2014-03-05 Thread Tim Richardson
I have a form in a component. I add recaptcha like so: form.element('table').insert(-1,TR('',form_captcha,'')) loading the component via a URL for its controller function works but the component when loaded via LOAD doesn't display I get this message in Firefox's web console: "Invalid App Id:

[web2py] Re: recaptcha in custom forms

2014-03-05 Thread Tim Richardson
On Wednesday, 5 March 2014 18:57:56 UTC+11, Tim Richardson wrote: > > > I also don't get recpatcha working with auth login at the moment (trunk) > That is, the recpatcha doesn't show although the Verify: label does, and > login gets the invalid error message for a failed recaptcha input > > No,