[web2py] Re: modified_by and modified_on not updating

2012-09-12 Thread Joel Carrier
I was calling auth.define_tables() after defining auth_user manually. My mistake. On Saturday, September 8, 2012 1:56:37 PM UTC-4, Joel Carrier wrote: > > Hmmm... i never call auth.define_tables I guess because I wanted to > customize the auth_user table. > And yet the following tables all get cr

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Joel Carrier
Good eye Niphlod! On Saturday, September 8, 2012 1:59:11 PM UTC-4, Joel Carrier wrote: > > > Ha, as soon as I pasted this snippet I realized that and was looking to > modify. > When developing I was working off the trunk and having this problem. > For some reason I thought maybe after deploying t

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Joel Carrier
Ha, as soon as I pasted this snippet I realized that and was looking to modify. When developing I was working off the trunk and having this problem. For some reason I thought maybe after deploying to linux and using a stable version the problem would go away. Then I deployed to a linux machine

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Joel Carrier
Hmmm... i never call auth.define_tables I guess because I wanted to customize the auth_user table. And yet the following tables all get created: | auth_cas | | auth_cas_archive | | auth_event | | auth_event_archive

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Niphlod
raising a little hand here... 2.0.8 and salt=True in auth are incompatible. Someone here is: - posting the wrong code - use the wrong web2py version - telling lies :P @Joel: jokes apart, can you please verify ? On Saturday, September 8, 2012 7:48:14 PM UTC+2, Massimo Di Pierro wrote: > > Suppose

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Massimo Di Pierro
works for me >>> db= DAL() >>> from gluon.tools import Auth >>> auth = Auth(db) >>> auth.define_tables() >>> db._common_fields.append(auth.signature) >>> db.define_table('thing', Field('name'), Field('name2', writable=False,

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Massimo Di Pierro
Supposed to work any update_record but let me give it a try. On Saturday, 8 September 2012 12:39:20 UTC-5, Joel Carrier wrote: > > At first I thought it was related to running on a windows machine using > the development server. > Then I deployed to a linux machine using the setup-web2py-ubuntu.s

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Joel Carrier
At first I thought it was related to running on a windows machine using the development server. Then I deployed to a linux machine using the setup-web2py-ubuntu.sh script Yes, the version is: Version 2.0.8 (2012-09-07 03:47:51) stable db.py: # -*- coding: utf-8 -*- if 0: from gluon.sql impo

[web2py] Re: modified_by and modified_on not updating

2012-09-08 Thread Massimo Di Pierro
I am trying to reproduce the problem but I cannot. Are you running 2.0.8? On Saturday, 8 September 2012 07:34:19 UTC-5, Joel Carrier wrote: > > I want to maintain an audit history of all my objects. > > So near the beginning of my model definition I have > > db._common_fields.append(auth.signature