RE: [web2py] Re: plugin model execution order

2010-12-07 Thread Josh Jaques
Hey, Just wanted to say that I also ran into a situation recently where it would have been nice to insert a model before db.py, and I wished it was possible. Would be nice to allow 0_plugin_name folders as well. This communication, including any attachments, does not necessarily represent offi

RE: [web2py] Re: Potential site trust abuse with default web2py setting?

2010-12-07 Thread Josh Jaques
I think I'd prefer to see the checking for external redirects in the redirect() function itself. Perhaps on a redirect() to an external page the user should be taken to a warning page that they are about to exit the web2py site, and ask them if they're sure they want to continue. This could be

RE: [web2py] convert python list to javascript array

2010-12-02 Thread Josh Jaques
Sounds like you're looking for response.json def test(): coords = ((1,2), (3,4), (5,6)) return response.json(coords=coords) Returns a javascript array formatted like: [[1, 2], [3, 4], [5, 6]] Or you can use response.json(dict(coords=coords)) to get a javascript object: {"coords": [[1, 2

RE: [web2py] Re: Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-26 Thread Josh Jaques
will give some thought to it and this should be probably be made the default web2py behavior. Any objection? On Nov 25, 4:49 pm, Josh Jaques wrote: > Hey guys, > > I looked into this a little more. > > The problem seems to be that self.custom.begin and self.custom.end are > compu

[web2py] RE: Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-25 Thread Josh Jaques
m) This seems to solve the problem, and doesn't seem to break anything in the testing I've done. Josh Jaques Intern From: web2py@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Josh Jaques Sent: Tuesday, November 23, 2010 10:35 AM To: web2py@googlegroups.com Subj

RE: [web2py] Re: targeted web2py_ajax_init for dynamically inserted forms

2010-11-24 Thread Josh Jaques
py@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of mdipierro Sent: Wednesday, November 24, 2010 12:51 PM To: web2py-users Subject: [web2py] Re: targeted web2py_ajax_init for dynamically inserted forms tell us more about jquery live. What do you propose? On Nov 24, 11:44 am, Josh Ja

[web2py] targeted web2py_ajax_init for dynamically inserted forms

2010-11-24 Thread Josh Jaques
If you load a form onto a web2py page via AJAX, it doesn't get the enhancements from web2py_ajax_init(). I've included a modified web2py_ajax_init that accepts an optional parent selector to provide some scope to web2py_ajax_init. In this way if you load a form onto a page, you can call web2py_

[web2py] Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-23 Thread Josh Jaques
Rendering SQLFORMs with a custom template, any hidden fields I create, as well as the hidden ID field are not displayed in the form until a call to accepts. I think this might be a bug because the same form rendered without a custom template will have the ID and hidden fields without calling ac

[web2py] SQLDB does not allow manual selection of 'sslmode' for PostgreSQL database connections

2010-09-28 Thread Josh Jaques
, the patch will default to prefer. In this way I believe the patch is backward compatible. Regards, Josh Jaques This communication, including any attachments, does not necessarily represent official policy of Seccuris Inc. Please see http://www.seccuris.com/Contact-PrivacyPolicy.htm for further