[web2py] Re: Can't get response.stream() to work

2016-09-14 Thread Joe Barnhart
I solved my problem. Part of me wants to just leave it at that. But I come here to teach as well as learn, and this is definitely a "teaching moment" for web2py developers. The code I posted before was without error. The problem occurred because it was not the only code in the controller.

[web2py] Re: Can't get response.stream() to work

2016-09-14 Thread Anthony
What happens if instead of calling generate_regfile you simply write some text directly to the StringIO object? Does it return properly in that case? Also, how is this code getting called? Anthony On Wednesday, September 14, 2016 at 4:52:09 PM UTC-4, Joe Barnhart wrote: > > The part that is

[web2py] Re: how to turn off caching for ajax() function calls.

2016-09-14 Thread Anthony
On Wednesday, September 14, 2016 at 2:41:28 PM UTC-4, Dave S wrote: > > > > On Wednesday, September 14, 2016 at 11:23:31 AM UTC-7, Anthony wrote: >> >> Not sure what you mean by caching. If your Ajax call updates data on the >> server but doesn't do anything on the client, then nothing will

[web2py] Re: How to get dropdown options working on nav-bar

2016-09-14 Thread Dave S
On Wednesday, September 14, 2016 at 1:00:45 PM UTC-7, Peter wrote: > > > That may be from the Bootstrap2 days. >> > > I put some time in last night trying to understand the how/why and think I > have a handle on it, thanks again for the pointers Dave. > I'm always happy to help, and sometimes my

[web2py] Re: Can't get response.stream() to work

2016-09-14 Thread Joe Barnhart
The part that is invisible to me is what happens after the controller does its job and hands the stream off to response.stream(). I've traced it far enough to see that it creates a "wrapped" version of the stream, and the stream is still correct and valid up to that point. After that, I lose

[web2py] Re: How to get dropdown options working on nav-bar

2016-09-14 Thread Peter
> That may be from the Bootstrap2 days. > I put some time in last night trying to understand the how/why and think I have a handle on it, thanks again for the pointers Dave. It may be useful to other noobs so my lessons learned... I started to develop using an existing Free CSS Template

[web2py] Re: how to turn off caching for ajax() function calls.

2016-09-14 Thread Dave S
On Wednesday, September 14, 2016 at 11:23:31 AM UTC-7, Anthony wrote: > > Not sure what you mean by caching. If your Ajax call updates data on the > server but doesn't do anything on the client, then nothing will change on > the page. We'll need to see some code to help. > > Anthony > May be

[web2py] how to turn off caching for ajax() function calls.

2016-09-14 Thread Anthony
Not sure what you mean by caching. If your Ajax call updates data on the server but doesn't do anything on the client, then nothing will change on the page. We'll need to see some code to help. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Which push notification service/solution would you recommend?

2016-09-14 Thread Massimo Di Pierro
I have using the google app engine queues and they work great. I am also experimenting with Amazon SQS. Will report back. If anybody has experience with them, I would like to know. On Wednesday, 14 September 2016 08:37:21 UTC-5, Zoltan Vincze wrote: > > Hi there! > > I'm total new to web

[web2py] Re: Web2py Solr UI

2016-09-14 Thread Massimo Di Pierro
You can ask here. If we can help for free so that everybody benefit the better. If instead you have private code and do not want to show, please contact one of the companies doing web2py support listed from the web2py page. On Wednesday, 14 September 2016 08:37:21 UTC-5, Morris Fourie wrote: >

[web2py] Re: web2py interprets function name as property

2016-09-14 Thread Massimo Di Pierro
Can you explain us more about what you are doing? You should not start/stop threads from web2py apps. On Wednesday, 14 September 2016 08:36:51 UTC-5, MarkEdson AtWork wrote: > > > I have a need to stop a thread on the server from web2py. > > The thread is running and I've stored the thread id so

[web2py] Re: LOCALS | FL | CT | Senior Salesforce Developer Remote

2016-09-14 Thread Ron Chatterjee
Doesn't mention anything about compensation. On Wednesday, September 14, 2016 at 9:36:51 AM UTC-4, Ali Quasim wrote: > > Hi, > > > > > > · *Role: Senior Salesforce Developer* > > · *Location: Remote - but will have to travel to Tampa, FL OR > Stamford, CT sites occasionally*

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Massimo Di Pierro
LOL. I am using it at camio.com we have a lot of internal dashboards based on web2py and large number of datasets BUT we bypass web2py Auth because have a different mechanism so we did not notice this problem. I will check but I often test GAE before posting new versions. On Tuesday, 13

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-14 Thread Massimo Di Pierro
On Mac my advice is to use Anaconda. Their conda package system too is great and handles all dependencies correctly. On Sunday, 11 September 2016 04:40:02 UTC-5, Joe Barnhart wrote: > > It's more complicated than that. There are obsolete versions of some > libraries, such as libel, which need

[web2py] Re: Can't get response.stream() to work

2016-09-14 Thread Massimo Di Pierro
What you have seems correct but we do not get the whole picture from this code. Sorry. On Sunday, 11 September 2016 04:52:24 UTC-5, Joe Barnhart wrote: > > This MUST be something I'm doing wrong. I have used this very code -- > even this method -- countless times but now it fails to stream the

[web2py] Re: Code change in oracle.py to allow joins in pagination.

2016-09-14 Thread Massimo Di Pierro
Thank you for your work. Can you submit a github pull request? If not we can do it but you may want to get the credit. Let us know. On Saturday, 10 September 2016 20:54:18 UTC-5, tomt wrote: > > Hello, > > I have patched the select_limitby routine in oracle.py to allow for > successful

[web2py] Web2py Solr UI

2016-09-14 Thread Morris Fourie
I need assistance with Web2py and Solr UI. I am new and not at the right level yet but am willing to pay. I hope I am at the right forum and come anyone help Thanks Mo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] LOCALS | FL | CT | Senior Salesforce Developer Remote

2016-09-14 Thread Ali Quasim
Hi, · *Role: Senior Salesforce Developer* · *Location: Remote - but will have to travel to Tampa, FL OR Stamford, CT sites occasionally* · *Length: 6+ months* · *Work week: Mon-Fri* · *Mode of interview: Phone then Skype* Senior Salesforce

[web2py] how to turn off caching for ajax() function calls.

2016-09-14 Thread MarkEdson AtWork
I am trying to update the val() in table data elements on a page. The call updates the text but the updates do not display in the browser. If I inspect the element the old text is still there but when I refresh the page the new text shows up. This behaves as though the initial values

[web2py] Which push notification service/solution would you recommend?

2016-09-14 Thread Zoltan Vincze
Hi there! I'm total new to web development, so pardon the n00b question (and my bad English)! After working through the video tutorial of Massimo I would like to write a web app using web2py --> web client push notifications. At first I wanted to use Firebase because I have already been

[web2py] web2py interprets function name as property

2016-09-14 Thread MarkEdson AtWork
I have a need to stop a thread on the server from web2py. The thread is running and I've stored the thread id so I can retrieve it when I want to abort. The abort code will look something like this: for tid, tobj in threading._active.items(): if tid == stored_thread_id:

[web2py] Duplicating an app when a client sign up

2016-09-14 Thread Oasis Agano
Greetings Im trying to setup a multi tenancy kind of app that will copy a web2py app to the same location with a different name(the new company's name) when that company signs up, im planning to use shutil as the folder library but im not that experienced with python the code is the following

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Mathieu Clabaut
Indeed, I did my test on a single instance with no scaling in order to characterise the cost if the service becomes largely used. You are right, with automatic scaling, the response time is totally acceptable. The cost is also acceptable as least until the site usage keeps low... Le mar. 13