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 AP
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 = gluon.main.appfactory
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)
temp_db.mytable.truncate
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 thi
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 assum
On 8 Sep 2013, at 9:19 AM, Charles Law 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
> http://stackoverflow.com/questions/7622961/defining-sub-domain-based-on
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 compl
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 = DAL("postgres://root:@192.168
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, c
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:
https://github.com/phektus/cvstash/blob/master/scripts/ex
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:
>
>
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
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
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 0
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 fro
15 matches
Mail list logo