Re: [web2py] default error message instad of custom one in SQLFORM

2013-09-08 Thread Annet
Hi Richard, Thanks for your reply. I had a couple of IS_NOT_EMPTY() validators in some modules which modify the default settings of a table. Adding error message to these validators solved the problem. Kind regards, Annet -- --- You received this message because you are subscribed to

[web2py] Re: How to process a custom register form?

2013-09-08 Thread Apple Mason
Thanks, I think I understand now. The last snippet looks very clean as opposed to defining the various auth actions in the controller. Also, I think I figured out why the form isn't saving. It's because there are errors on the form, but the errors are hidden. Right now I only display three

[web2py] Re: SQLFORM.grid - Create from list of objects

2013-09-08 Thread Gliese 581 g
Hi Massimo, I will try to be more specific. I am developing a web2py application(APP1) which works on the data which it gets from another web2py application(APP2). We do not have access to the database of APP2, we access their data through jsonrpc web services exposed by APP2. Now, there is an

[web2py] Re: Routing A Subdomain (on Openshift)

2013-09-08 Thread Massimo Di Pierro
Please open a ticket pointing to this. I think we should support something like this in routes.py but it needs some more thought. On Sunday, 8 September 2013 00:00:03 UTC-5, Charles Law wrote: For completeness I have modified code in application: application_web2py =

[web2py] Re: SQLFORM.grid - Create from list of objects

2013-09-08 Thread Massimo Di Pierro
You cannot unless you first load the data in a database. You can use a temporary in memory database like this: fields = [Field('one'), Field('two'), Field('three'), ...] temp_db = cache.ram('tmp_db',lambda: DAL('sqlite:memory').define_table('mytable',*fields)._db, None)

[web2py] Re: smartgrid of grid and list of dictionary

2013-09-08 Thread keiser1080
thanks this kinfd of table is unique for each session or user? Le dimanche 8 septembre 2013 04:03:40 UTC+2, Massimo Di Pierro a écrit : You can make a fate table in ram or in cache (DAL('sqlite:memory') or MEMDB), On Saturday, 7 September 2013 16:49:12 UTC-5, Anthony wrote: I think he

[web2py] Re: Routing A Subdomain (on Openshift)

2013-09-08 Thread Charles Law
Is it supported already? I saw this: http://web2py.com/book/default/chapter/04#Pattern-based-system (last example) and http://stackoverflow.com/questions/7622961/defining-sub-domain-based-on-a-function-in-routes-py-of-web2py that look like examples of web2py supporting subdomain routes. I

Re: [web2py] Re: Routing A Subdomain (on Openshift)

2013-09-08 Thread Jonathan Lundell
On 8 Sep 2013, at 9:19 AM, Charles Law charles@gmail.com wrote: Is it supported already? The parametric router might do what you want. I saw this: http://web2py.com/book/default/chapter/04#Pattern-based-system (last example) and

[web2py] Re: SQLFORM.grid - Create from list of objects

2013-09-08 Thread Anthony
Not great if you need pagination, though (you'd need to fetch all the data from the API and put it in the temporary in-memory DB). Perhaps another option would be to create a custom DAL adapter and override the .select() and .count() methods to pull data and counts from the API. Could get

[web2py] Newby, can't connect to a Postgresl database

2013-09-08 Thread Sartglider
Hi, I'm really new to web2py - less than 24 hours - Trying to follow this example http://web2py.com/books/default/chapter/29/03/overview#Say-hello it worked fine with sqlite, so I try to connect to a postgresql database in another server: the model is this one: db =

[web2py] Re: Newby, can't connect to a Postgresl database

2013-09-08 Thread Dragan Matic
Postgres probably doesn't have 'root' as user. Its root user is 'postgres'. After that check if your address is allowed to connect to postgres server in pg_hba.conf and if server is listening on your network ('listen_addresses' setting in postgresql.conf). It could also be a firewall issue,

Re: [web2py] Re: Newby, can't connect to a Postgresl database

2013-09-08 Thread starglider.dev
Actually it as a root user because all application connect to the server by root, the other software is made with python pscopg2. I try to connect by psql from the server that as web2py and it worked, also create a model with this script:

[web2py] Re: Newby, can't connect to a Postgresl database

2013-09-08 Thread Matheus Cardoso
This is odd. Normally, web2py flushes a html error saying that he tried to connect five times (i guess) but with no success. Have you tried to look the sql.log? And try check the params that Dragan described to you. Em domingo, 8 de setembro de 2013 12h47min38s UTC-3, Sartglider escreveu:

[web2py] Re: github - please follow

2013-09-08 Thread Marcio Andrey Oliveira
done. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

[web2py] Re: Example of web2py integration with an AJAX grid (preferably jquery based) which updates backend db ?

2013-09-08 Thread tomt
Simon, I wanted to thank you for the answer you posted. As a casual user of web2py, I would have never figured this out on my own, but your clear example showing db, controller and view made it easy for me to understand and to implement. It would be great if the experienced users of web2py would

[web2py] Re: smartgrid of grid and list of dictionary

2013-09-08 Thread Massimo Di Pierro
You can make is unique unique_key = response.session_id+'.temptable' db = cache.ram(unique_key,lambda:DAL('sqlite:memory'), None) On Sunday, 8 September 2013 09:40:53 UTC-5, keiser1080 wrote: thanks this kinfd of table is unique for each session or user? Le dimanche 8 septembre 2013

[web2py] Managing Greenlet Queues

2013-09-08 Thread archeaneon
For the purpose of managing greenlet queues, is there a safe way of globally (across web2py threads) maintaining a list of these? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from