[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
> The section of the online book about this says the lambda in the >> selectable should be a redirect; when it was, I still got 2 requests, but >> the second had an added var w/ the selected IDs. >> > > The book doesn't say the callback should do a redirect -- that's just an > example. In any

[web2py] Login page - Menu bar does not work

2016-09-21 Thread SR
When I am in the Login page, the menu items does not work. Any idea why it is not working? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: Assign users to multiple groups

2016-09-21 Thread SR
Thanks a lot. On Wednesday, September 21, 2016 at 5:40:39 PM UTC-5, SR wrote: > > How can I assign a particular user to 3 different groups? > Any suggestions? > Thanks. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Assign users to multiple groups

2016-09-21 Thread SR
How I do it using the web2py's "Administrative Interface"? On Wednesday, September 21, 2016 at 5:40:39 PM UTC-5, SR wrote: > > How can I assign a particular user to 3 different groups? > Any suggestions? > Thanks. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Assign users to multiple groups

2016-09-21 Thread Dave S
On Wednesday, September 21, 2016 at 3:40:39 PM UTC-7, SR wrote: > > How can I assign a particular user to 3 different groups? > Any suggestions? > Thanks. > Wouldn't that be just applying the add_membership() call 3 times? auth.add_membership(brits, james_bond) auth.add_membership(shakers,

[web2py] Assign users to multiple groups

2016-09-21 Thread SR
How can I assign a particular user to 3 different groups? Any suggestions? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

[web2py] Re: Scheduler task runs before it is supposed to run

2016-09-21 Thread Niphlod
BTW: it has been merged . You can safely take scheduler.py from master and overwrite your own if you want to avid specifying next_run_time On Wednesday, September 21, 2016 at 5:57:44 PM UTC+2, Bernardo Leon wrote: > > Niphlod I will use postgresql in production and your solution as well. >

[web2py] Re: Off topic (1) what data warehouse with w2p data and (2) survey: which ones are you using?

2016-09-21 Thread Niphlod
postgresql is fairly supported. on top of the usual suspects, qlikview and tableau are really great, if you can spend some money. On Wednesday, September 21, 2016 at 7:21:37 PM UTC+2, Alex Glaros wrote: > > Using Postgres to store web2py transactional data. Any advice regarding > data warehouse

[web2py] Re: scaling web2py

2016-09-21 Thread Niphlod
I saw a relatively/mostly related issue on the repo and so I feel I should give an answer... web2py is a web framework: we're not in the business of managing processes nor webservers. We're in the business of realizing an app that does what you want in response to a web request. For

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
On Wednesday, September 21, 2016 at 1:16:29 PM UTC-4, Scott Hunter wrote: > > I think I understand; seems like something that should be documented, as > well as able to be disabled. > Is it causing a problem for you? Why do you need to disable the redirect? Anthony -- Resources: -

[web2py] Re: Passing a list as query parameter and storing the retrieved rows in a list

2016-09-21 Thread Anthony
On Wednesday, September 21, 2016 at 3:30:49 AM UTC-4, Meinolf wrote: > > OMG, Is this normal? > i got chills telling me it had something to do with the *For Loop*, > played around with the LBs and UBs and the following worked: > >* for i in range(-1, (len(getcourseids)-1)):* > First,

[web2py] Re: scaling web2py

2016-09-21 Thread Dave S
On Wednesday, September 21, 2016 at 6:37:21 AM UTC-7, Pierre wrote: > > Hi, > > I am very familiar with the concepts of threads, processes and scaling > issues. What i understand so far is: > (1) a web2py application process manages a number of threads dealing with > requests > (2) I can run

[web2py] Re: Passing a list as query parameter and storing the retrieved rows in a list

2016-09-21 Thread Dave S
On Wednesday, September 21, 2016 at 12:30:49 AM UTC-7, Meinolf wrote: > > OMG, Is this normal? > i got chills telling me it had something to do with the *For Loop*, > played around with the LBs and UBs and the following worked: > >* for i in range(-1, (len(getcourseids)-1)):* >

[web2py] Re: retrieval of data from android device and adding it to database through gprs connection

2016-09-21 Thread Dave S
On Tuesday, September 20, 2016 at 10:29:51 PM UTC-7, karthik naidu wrote: > > > hi, i'm new to web2py. > I'm making an app to track positions of an android device. > how to recieve data from android device and store it in my database. > thanks in advance. > Short answer: the android device

[web2py] Off topic (1) what data warehouse with w2p data and (2) survey: which ones are you using?

2016-09-21 Thread Alex Glaros
Using Postgres to store web2py transactional data. Any advice regarding data warehouse choice in terms of ease of data transfer, compatibility, etc. If their roles are so separate that compatibility is not relevant, am still curious regarding: - What people are using and would like to

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Scott Hunter
I think I understand; seems like something that should be documented, as well as able to be disabled. On Wednesday, September 21, 2016 at 12:37:52 PM UTC-4, Anthony wrote: > > On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: >> >> Here's a simple controller using an

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Anthony
On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: > > Here's a simple controller using an SQLFORM.grid w/ selectable: > > def open_requests(): > print 'Req: %r' % request.vars > query = ... > form = SQLFORM.grid(query, csv=False, details=False,

[web2py] Re: Scheduler task runs before it is supposed to run

2016-09-21 Thread Bernardo Leon
Niphlod I will use postgresql in production and your solution as well. Thank you for helping me! ;) El miércoles, 21 de septiembre de 2016, 2:33:30 (UTC-5), Niphlod escribió: > > that error is due - mostly - when the backend is too much pressured (i.e. > you're using sqlite, or too many

[web2py] anonymize sensitive data on the fly using LazyCrypt() object as primary key

2016-09-21 Thread Zoltan Vincze
I would like to anonymize some DB-tables on the fly to ensure that no one - not even me as administrator - can perform joins between tables signed with auth.user_id and tables signed with anonym_user_id but the logged in user himself. At the same time I would like to be able to perform joins

[web2py] Re: SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Scott Hunter
If I have the controller function return a string if there is a 'records' variable, the second request is not made; however, then it does not redisplay the form. On Wednesday, September 21, 2016 at 9:36:14 AM UTC-4, Scott Hunter wrote: > > Here's a simple controller using an SQLFORM.grid w/

[web2py] scaling web2py

2016-09-21 Thread Pierre
Hi, I am very familiar with the concepts of threads, processes and scaling issues. What i understand so far is: (1) a web2py application process manages a number of threads dealing with requests (2) I can run one or more additional scheduler processes to unload the main process (#1) doing (2)

[web2py] SQLFORM.grid w/ selectable generates multiple requests

2016-09-21 Thread Scott Hunter
Here's a simple controller using an SQLFORM.grid w/ selectable: def open_requests(): print 'Req: %r' % request.vars query = ... form = SQLFORM.grid(query, csv=False, details=False, deletable=False , editable=False, searchable=False, create=False, selectable

[web2py] Re: Problems with websocket_messaging

2016-09-21 Thread Zoltan Vincze
> > It seems to be a connection problem. Try to test whether tornado is > installed correctly together with its dependencies. I used this to get the > last version running on ubuntu a couple days ago: > Introduction to Tornado

[web2py] Filter for subgraph of graph_model ?

2016-09-21 Thread Jurgis Pralgauskis
Hi, I came to a new job where we have ~200 tables... emm... graph_model would be more usefull if it could "extract/filter" some domains (according to search words for table/field names) and layout nicely 10-20 tables instead of 200 (it's ok for some references to be "orphaned" on one end)

[web2py] Problems with websocket_messaging

2016-09-21 Thread Martin Weissenboeck
I have tried the websocket_messaging (gluon/contrib/websocket_messaging.py) on a Windows 10 laptop - it works very fine! The next step was an impementation on a Linux machine (Ubuntu 14.04.4, last Web2py version 2.14.6) The line websocket_send('http://localhost:', form.vars.message,

[web2py] Re: Scheduler task runs before it is supposed to run

2016-09-21 Thread Niphlod
that error is due - mostly - when the backend is too much pressured (i.e. you're using sqlite, or too many workers, or a too low heatbeat) this is the fix https://github.com/web2py/web2py/pull/1453 . you can subscribe to it to know when it'll be merged. On Tuesday, September 20, 2016 at

[web2py] Re: Passing a list as query parameter and storing the retrieved rows in a list

2016-09-21 Thread Meinolf
OMG, Is this normal? i got chills telling me it had something to do with the *For Loop*, played around with the LBs and UBs and the following worked: * for i in range(-1, (len(getcourseids)-1)):* * c = db.item.id==getcourseids[i].item_id* *

[web2py] Re: Passing a list as query parameter and storing the retrieved rows in a list

2016-09-21 Thread Meinolf
I tried both approaches but i get the following error: 'Rows' object has no attribute 'values' the Rows object being referred to in the error is *getcourseids, *which is true because it holds a set of rows retrieved from the database before. How can i get around it then? On Tuesday, September