[web2py] Trouble with reset password

2018-01-24 Thread Julian Sanchez
I'm having troubles with the reset password functionality and I'm hoping you guys can give me some pointers on what to check, or how to fix it (version 2.16.1 stable, running from source). When running my application in GAE I can go to the reset password page

[web2py] Re: Serving files from a Google Cloud Storage Bucket

2017-10-20 Thread Julian Sanchez
response.write or response.body kept returning 'None' On Monday, October 16, 2017 at 6:09:07 AM UTC-5, Julian Sanchez wrote: > > I'm in the process of 'upgrading' an old Web2py application hosted on GAE > that performs a fair amount of file manipulation. The original versio

[web2py] Serving files from a Google Cloud Storage Bucket

2017-10-16 Thread Julian Sanchez
I'm in the process of 'upgrading' an old Web2py application hosted on GAE that performs a fair amount of file manipulation. The original version used the blobstore to create files, and the 'default/download' function was modified to serve those blobs like this (abbreviated): blob_key

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

2016-09-10 Thread Julian Sanchez
Hi Joe, psycopg2 installs on mac (I have it on 3). 'pip install' will fail because psycopg2 needs the postgresql client libraries already installed. If you have homebrew just do a 'brew postgresql' followed by 'pip install psycopg2'. It should work. Cheers, Julian On Thursday, September

[web2py] Re: Help with memory leak

2016-06-21 Thread Julian Sanchez
Both cases it's done from source Cheers, Julian On Monday, June 20, 2016 at 6:27:05 PM UTC-5, Anthony wrote: > > In both cases, are you running Python from source, or is the GUI case with > the Mac binary? > > Anthony > > On Monday, June 20, 2016 at 7:22:08 PM UTC-4,

[web2py] Re: Help with memory leak

2016-06-20 Thread Julian Sanchez
Well, this is interesting... When starting the server via the command line I don't see any memory increase. However: - When starting via command line the process name that shows in activity monitor is 'python2.7' - When starting the GUI (with the corresponding memory increase) the name of the

[web2py] Re: Help with memory leak

2016-06-20 Thread Julian Sanchez
I can relate to that behavior as I also see a memory usage increase from just running web2py, but I don't know if it's the same thing as what was described by the OP. OS X El Capitan Python 2.7.10 (default, Sep 23 2015, 04:34:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on

[web2py] Re: SQLFORM.grid: trigger edit when clicking anywhere on the row itself

2015-10-27 Thread Julian Sanchez
'user_signature=False' in the SQLFORM.grid() call. Learned something new :) Cheers, Julian On Monday, October 26, 2015 at 4:02:46 AM UTC-5, Niphlod wrote: > > the edit link isn't that hard to rebuild ... > > /edit/tablename/record_id > > > > On Saturday, October 24, 2015 at

[web2py] Re: IS_DATE() and timezones

2015-10-26 Thread Julian Sanchez
off using a datetime field and setting the > time to midnight. > > Anthony > > On Sunday, October 25, 2015 at 12:02:48 PM UTC-4, Julian Sanchez wrote: >> >> Thanks Anthony, great insight. >> >> Most data is user-generated so the intent is to imply midni

[web2py] IS_DATE() and timezones

2015-10-25 Thread Julian Sanchez
I'm developing an application that will have users from different time zones. The intent is to store everything in UTC and translate to user's timezone at display/edit time. I started working on my own solution when I came across this post

[web2py] Re: IS_DATE() and timezones

2015-10-25 Thread Julian Sanchez
midnight -- but then you should probably be storing datetimes, not > simply dates. > > Anthony > > On Sunday, October 25, 2015 at 8:54:40 AM UTC-4, Julian Sanchez wrote: >> >> I'm developing an application that will have users from different time >> zones. The inte

[web2py] SQLFORM.grid: trigger edit when clicking anywhere on the row itself

2015-10-24 Thread Julian Sanchez
Is there an easy way to trigger the same URL you get when pressing the built-in 'edit' button of the SQLFORM.grid without having to show that button? I have a few grids that would show cleaner if users could go directly to the edit page by clicking on the row itself (no need to view details).

[web2py] Help with rendering checkboxes differently

2012-12-02 Thread Julian Sanchez
I'm trying to have a couple of forms showing a list of checkboxes that follow this structure: div class=control-group label class=control-labelCheckboxes/label div class=controls labeldiv class=checker id=uniform-undefinedspaninput type=checkbox name=radios style=opacity:

[web2py] Re: Hide form and erase input

2012-12-01 Thread Julian Sanchez
Just curious... did you end up using a completely custom form or were you able to manipulate the SQLFORM inside the controller? On Saturday, December 1, 2012 7:03:33 AM UTC-6, Daniele wrote: I ended up putting them in separate divs and hiding the entire div. Works like a charm! Thanks guys

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-27 Thread Julian Sanchez
called, and that it is not throwing an exception? that will help us track down where it's gone astray thanks! cfh On Sunday, November 25, 2012 5:43:16 PM UTC-8, Julian Sanchez wrote: Oh, I see. I thought that were you mentioned logs you were referring to the built-in logs inside

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-25 Thread Julian Sanchez
logging extensively and it all seems to show up in the GAE console logs just fine. if you have no logging.conf and you have logging.info statements in your code, can you find the messages in your logs? cfh On Saturday, November 24, 2012 5:29:41 AM UTC-8, Julian Sanchez wrote: Are there any

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-24 Thread Julian Sanchez
implements delete, so it is GAE specific. cfh On Wednesday, November 21, 2012 5:04:32 PM UTC-8, Julian Sanchez wrote: Massimo, I created a small test to try your function: db.define_table('carrier', Field('name', type='string'), Field('description', type='string

[web2py] Re: Running GAE locally - beginners question

2012-11-22 Thread Julian Sanchez
I made that mistake as well :). In the Google App Engine Launcher make sure you use the File - ADD Existing Application and then browse to the web2py root folder. What you did is File - New Application which creates a hello world default page. It took me a while to figure that one out :P On

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-21 Thread Julian Sanchez
:07:02 UTC-6, Julian Sanchez wrote: Hi Everyone!! Long time lurker first time posting... I am working on a simple application that I intend to deploy in GAE. I have a few tables with fields that reference other tables which by default enables the ondelete=CASCADE behavior. This works fine

[web2py] Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-17 Thread Julian Sanchez
Hi Everyone!! Long time lurker first time posting... I am working on a simple application that I intend to deploy in GAE. I have a few tables with fields that reference other tables which by default enables the ondelete=CASCADE behavior. This works fine when I run the app locally using

[web2py] Cascading deletes in GAE with SQLFORM.grid

2012-11-17 Thread Julian Sanchez
I'm deploying a web2py app in GAE (web2py version 2.2.1) that has a number of tables with fields that reference other tables in the same model. I have a few pages that use the SQLFORM.grid to display the data from those tables. When running the app locally using sqlite as the backend