[web2py] Re: auth expiring sessions too fast

2010-03-11 Thread Ted G
I'm seeing this behaviour as well (on GAE live but not SDK). In my case sessions are in memcache not db. Can't pinpoint when it started but noticed it earlier this week. Haven't updated web2py in quite some time (I've been running 1.65.11). On Mar 10, 4:47 pm, Richard wrote: > I forgot to mentio

[web2py] Re: auth expiring sessions too fast

2010-03-15 Thread Ted G
rovide an API to store > sessions in memcache. If you have implemented it perhaps we should > include it in web2py so I can help debug it if there is a problem. > > On Mar 11, 12:04 pm, Ted G wrote: > > > > > I'm seeing this behaviour as well (on GAE live but not SDK)

[web2py:23362] Re: Best way to handle rich website?

2009-06-05 Thread Ted G
> When you hit the URL 'appname/default/index': > > > * It is the responsibility of the function index() in the controller > > file default.py to return an item called 'some_db_records' > > * The function bar() in controller foo.py is not called > >

[web2py:23970] Re: web2py 1.62.1 is OUT (New Features List)

2009-06-11 Thread Ted G
Massimo, With respect to the new file upload remembering the file name. Are there accompanying methods to get and set the filename after upload of the file? In my example, my app is running on GAE, therefore uploaded files are being stored in the DB. I require the ability for the user to see a l

[web2py:24020] Re: web2py 1.62.1 is OUT (New Features List)

2009-06-12 Thread Ted G
tion that replaces > form.vars.filefieldname.filename before the file is actually loaded. > You can also define a custom download action. > > There is no exposed API to do this since the current mechanism is > quite complex and I do would not encourage bypassing it. > > Massim

[web2py:24024] Re: jpolite and form submit

2009-06-12 Thread Ted G
I think the "patch" may have been the change I suggested in this thread dealing with file uploads using forms within a jDiv. http://groups.google.com/group/web2py/browse_frm/thread/34533d763a5e856f/c6cb190b051a03bc?lnk=gst&q=jdiv+file+upload#c6cb190b051a03bc Basically the change was to utilize j

[web2py:24026] Re: jPolite solved (almost) all our problems

2009-06-12 Thread Ted G
Is the work being done with jPolite meant to replace the work that was being done with jDiv? I've been using a modified version of the older jDiv code in my app. Should I be looking instead to use jPolite? Ted On May 19, 12:06 pm, mdipierro wrote: > I turnedjpoliteinto a web2py app. > > http

[web2py:24445] Possible to render view template from db blob/text/string instead of file?

2009-06-18 Thread Ted G
I have an application in which I need to have the view rendered by a controller be specified using a parameter to that controller. I believe I could do the following based on what I've dug up in this forum: def index(): try: response.view='default/' + request.args[0] # eg. 'indexview2.ht

[web2py:24499] Re: Possible to render view template from db blob/text/string instead of file?

2009-06-19 Thread Ted G
That would be amazing. This will help to enable a very important part of my app's functionality. Thank You. On Jun 18, 8:31 pm, mdipierro wrote: > not easy to do now, but easy to add. I will add this to trunk > tomorrow. > > Massimo > > On Jun 18, 4:30 pm, Ted G wro

[web2py:24715] Re: Possible to render view template from db blob/text/string instead of file?

2009-06-22 Thread Ted G
Hi Massimo, I've been watching trunk. Have you had any luck with this? Ted On Jun 18, 8:31 pm, mdipierro wrote: > not easy to do now, but easy to add. I will add this to trunk > tomorrow. > > Massimo > > On Jun 18, 4:30 pm, Ted G wrote: > > > > > I have

[web2py:24895] Re: Possible to render view template from db blob/text/string instead of file?

2009-06-24 Thread Ted G
we want. > > > > Note that response.stream already works this way so it would be > > > perhaps more consequential, too. > > > > On Jun 22, 9:03 pm, mdipierro wrote: > > > > > I should be able to di it tomorrow if no major obstacles. > > > &

[web2py:29670] Best approach to insert records containing upload fields with default files/images.

2009-08-30 Thread Ted G
I'm not sure of the best way to approach this, any suggestions? I am inserting records into a table that contains an upload field for an image (which is stored in the table as a blob). The user will be able to later change this image via a form, and I wish to expose the field for download, thus t

[web2py:29713] Re: web2py compatibility with snow leopard

2009-08-31 Thread Ted G
FYI, After I upgraded to Snow Leopard web2py appeared to run fine (I am running it under the GAE SDK). However, I was running with PIL installed for image manipulation and this broke. After several unsuccessful attempts to install PIL within Python 2.6 on Snow Leopard (if anyone comes up with a

[web2py:29714] Re: Best approach to insert records containing upload fields with default files/images.

2009-08-31 Thread Ted G
ncoded_filename = base64.b16encode(filename).lower() newfilename = '%s.%s.%s.%s' % \ (tablename, fieldname, uuid_key, encoded_filename) newfilename = newfilename[:122]+'.'+extension return newfilename Ted On Aug 30, 11:59 pm, Ted G wrote: > I'm

[web2py:29812] Re: Anyone have errors running 10.6 Mac OS X and web2py?

2009-09-01 Thread Ted G
In the Google App Engine Launcher Preferences you can set the python path to 2.5. I had to do this as well after upgrading to Snow Leopard as PIL would not work Snow Leopard Python2.6 On Sep 1, 1:13 am, cpt1002 wrote: > Hello, > > So I upgraded Mac OS X to 10.6 and I get some errors when I try

[web2py:19775] Poor performance on GAE

2009-04-14 Thread Ted G
I'm wondering if anyone has tips on where I should start in trying to track down performance problems running my web2py application on GAE. Initially I created an application using only the api's supplied by GAE. This app was very fast in terms of response times. I've since recreated and updated

[web2py:19797] Re: Poor performance on GAE

2009-04-14 Thread Ted G
Thank you for the tips. I'll work through these and determine if I can find a specific root cause of the performance problem. I've been testing on a particular page of the application that lists a number of items along with thumbnail images for those items. The thumbnails are images placed into a

[web2py:20914] Re: Coooooool!

2009-05-01 Thread Ted G
I'm having a problem using upload fields within forms that are used within jDiv containers. Testing edit() below by itself provides a form that I can successfully select and update an image. When I encapsulate the same edit() within a jDiv, all fields update with the exception of the upload field,

[web2py:20948] File upload not working when form is in jDiv

2009-05-01 Thread Ted G
I've been trying out the new jDiv container, which works well with the exception of forms containing upload fields. I thought I would start a new thread for this, as my previous post (included below), seemed out of place in the old thread. Note that in the example code below, I've also tried repl

[web2py:20967] Re: File upload not working when form is in jDiv

2009-05-01 Thread Ted G
n JS library used to handle jDiv. I will investigate > > but it will not be solved overnight. > > > Massimo > > > On May 1, 2:21 pm, Ted G wrote: > > > I've been trying out the new jDiv container, which works well with the > > > exception of forms conta

[web2py:20972] Re: File upload not working when form is in jDiv

2009-05-01 Thread Ted G
jDiv. > > There's probably a better way to do this, but this works for now. > > -wj > > On Fri, May 1, 2009 at 4:52 PM, Ted G wrote: > > > On a related note: > > > What is the best way to trigger a Javascript function upon a jDiv load > > or form subm

[web2py:21193] Re: File upload not working when form is in jDiv

2009-05-04 Thread Ted G
y for submitting forms? Incorporating this plugin would also open the door to other form behavior customizations on the client side such as progress meters, etc, which would also be very useful. Ted On May 1, 4:29 pm, Ted G wrote: > That is how I've resorted to for now as well (with the exception

[web2py:21201] Re: File upload not working when form is in jDiv

2009-05-04 Thread Ted G
code for HoursjDiv i > have it trigger FormjDiv to open it up again with a new form (like click the > first top button) and also to refresh contents in Last20itemsjDiv. > > There's probably a better way to do this, but this works for now. > > -wj > > On Fri, May 1, 2009

[web2py:21218] Re: File upload not working when form is in jDiv

2009-05-05 Thread Ted G
pm, mdipierro wrote: > Can you provide an example? I am not sure this cannot be done already. > > On May 4, 4:28 pm, Ted G wrote: > > > A bit more follow up on this topic of taking action after an ajax load > > call on the jDiv. > > > Right now the jDivLoad func

[web2py:21256] Re: File upload not working when form is in jDiv

2009-05-05 Thread Ted G
}); command=xhr.getResponseHeader('web2py-jDiv-Commands'); if(command) eval(command); if(onLoadCmd) eval(onLoadCmd); $(target).attr('status','loaded').trigger('loaded',callback);

[web2py:21261] Re: Open to suggestions

2009-05-05 Thread Ted G
I've used the same technique you describe in order to create a better form layout. In my case I did not have as many fields, but I did have a few text areas, which created a "vertically challenged" form. Same as your approach, I create a form using SQLFORM as per normal and pass it to the view wi

[web2py:21305] Re: Best way to handle rich website?

2009-05-06 Thread Ted G
If you do a search on jDiv you will find a few recent threads discussing this topic (related to the example link provided by Massimo). I've been heading down this road myself, creating a site where site pages are simply container based layouts containing re- useable "applets". The pattern I've fou

[web2py:21456] Re: todo & help

2009-05-07 Thread Ted G
With the RSS Examples and 90 second Blog example in FAQ, latest Twitter examples and GAE hosting (or existing web2py server), it would seem that all the pieces are there to put together a basic free hosted web2py blog with the ability to post entries (title + summary) to twitter and provide an RSS

[web2py:22623] 411 Error from Google App Engine resulting from jDivLoad on Firefox

2009-05-25 Thread Ted G
An FYI for anyone experimenting with jDivLoad ... If you deploy a web2py app using jDivLoad to Google App Engine (this does not happen in the SDK), you may receive 411 errors when those jDiv's attempt to load while using Firefox (this issue is not necessarily isolated to just GAE). The jDivLoad