Massimo,

Thanks for the correction. 

I hope to see if it saves me copy and paste the modified_on/created_on fields 
in another few tables. 

Is auth.signature defined somewhere? Sorry that it maybe another silly 
question. My below model below does give me what I want to use utc. 

Regards,
Funman

>> db.define_table('demo_detail',
>>    Field('prototype_id', 'reference prototype',label='Prototype Title'),
>>    Field('info','text'),
>>    Field('storyboard', 'upload', label='Storyboard'),
>>    Field('modified_on', 'datetime', update=request.utcnow, writable = False),
>>    Field('created_on', 'datetime', update=request.utcnow, writable = False),
>>    auth.signature
>> )


On 22 May, 2013, at 21:48, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote:

> auth.signature is not a table. It is a list of fields which you are including 
> in the demo_detail table.
> 
> On Tuesday, 21 May 2013 21:48:28 UTC-5, funm...@gmail.com wrote:
>> 
>> hi all,
>> 
>> I like to use table inheritance with auth.signature in my model. I see that 
>> it is working, but it doesn't use utc time. So i added my own field.
>> 
>> 1) Is this a recommended approach or there are other ways to modify 
>> auth.signature?
>> 
>> db.define_table('demo_detail',
>>    Field('prototype_id', 'reference prototype',label='Prototype Title'),
>>    Field('info','text'),
>>    Field('storyboard', 'upload', label='Storyboard'),
>>    Field('modified_on', 'datetime', update=request.utcnow, writable = False),
>>    Field('created_on', 'datetime', update=request.utcnow, writable = False),
>>    auth.signature
>> )
>> 
>> 2) I can't seem to see the auth.signature table in my appadmin. Where should 
>> i modify it if needed?
>> db.auth_user New Record
>> db.auth_group        New Record
>> db.auth_membership   New Record
>> db.auth_permission   New Record
>> db.auth_event        New Record
>> db.auth_cas
>> 
>> 
>> Thank for your help.
> -- 
>  
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "web2py-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/web2py/oQpOEHW7_7A/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to 
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to