Re: [web2py] Re: memory leak?

2014-04-03 Thread Rick Ree
rapid succession. In the absence of this, garbage collection does seem to proceed normally. Sorry for the confusion. On Wednesday, April 2, 2014 4:59:43 AM UTC-5, Rick Ree wrote: > > Yes, the leak seems to be associated with rendering data in a view. > On Apr 2, 2014 3:57 AM, "Pa

[web2py] Re: memory leak?

2014-04-01 Thread Rick Ree
Ubuntu 12.04 and 13.10. I'm running web2py from the git repo, but observed this in 2.8.2 as well. On Tuesday, April 1, 2014 10:40:55 PM UTC-5, Massimo Di Pierro wrote: > > This should not be happening. What OS? What wev2py version? > > On Tuesday, 1 April 2014 10:00:08 UTC-

[web2py] Re: memory leak?

2014-04-01 Thread Rick Ree
json view. Repeated calls to this function leak memory, and I'm trying to figure out if this is a bug in web2py. The example I gave is the simplest case that shows the problem. > > On Tuesday, April 1, 2014 8:00:08 AM UTC-7, Rick Ree wrote: >> >> Hi, >> >> I

[web2py] memory leak?

2014-04-01 Thread Rick Ree
Hi, If I create a new app and put a single function in default.py: def f(): return dict(a=list(range(10))) and then repeatedly call this using wget, e.g. wget http://localhost:8000/default/f.html, then memory usage of web2py will creep higher with each call. Is this a memory leak, or w

[web2py] Re: record versioning: what if tables are manually changed with migrate=False?

2013-01-16 Thread Rick Ree
t table will not migrate but associated archive table will. > > If instead migrate_enabled=False, none of the tables will migrate. > > > > On Tuesday, 15 January 2013 22:09:28 UTC-6, Rick Ree wrote: >> >> Hi, >> >> I would like to enable record versioning on an

[web2py] record versioning: what if tables are manually changed with migrate=False?

2013-01-15 Thread Rick Ree
Hi, I would like to enable record versioning on an existing MySQL database in which all tables are managed manually (migrate=False). I am concerned about what happens if the structure of a table changes in db.define_table( ... ). Is the associated archive table changed to match accordingly? th

[web2py] dropping Janrain and migrating users to new login system?

2013-01-14 Thread Rick Ree
Hi, I'm developing an application that currently uses Janrain for authentication. I'm running an instance of the app that has a dozen users or so. I would like to redesign the app so that it can be installed by end users without requiring signing up with Janrain. So, I'm thinking of switching

[web2py] Re: Database auditing - comments please

2012-03-20 Thread Rick Ree
In case anyone else is using this, I found that 1.99.7 requires a change at line 78: #rows = self.select(query, ['id'], {}) rows = self.select(query, [table['id']], {}) On Monday, July 25, 2011 2:57:05 PM UTC-5, nick name wrote: > > Newer version attached, has been tested in one specifi

[web2py] Re: allow reference field to be empty?

2012-01-31 Thread Rick Ree
Ah, stupid me. Thanks. On Jan 31, 8:42 am, Anthony wrote: > Not sure if this is the problem, but it should be: > > IS_IN_DB(db, ...) > > not > > IS_IN_DB(db.A, ...) > > Anthony > > > > > > > > On Tuesday, January 31, 2012 9:11:48 AM UTC-5, Rick

[web2py] allow reference field to be empty?

2012-01-31 Thread Rick Ree
I've run into a basic problem that I can't seem to figure out: db.define_table('A', Field('name'), format='%(name)s') db.define_table( 'B', Field('number'), Field('name', db.A, requires=IS_EMPTY_OR(IS_IN_DB(db.A,'A.id','%(name)s'))) ) All I want to do is allow db.B.name