Can you post a minimal app that reproduces the problem?

On Friday, April 10, 2015 at 3:50:45 AM UTC-4, 黄祥 wrote:
>
> can not, with auth.signature n record versioning, the Set Object can not 
> be processed further when it goes to the f['is_active'] == False. It just 
> can be use as is Set Object (s), when trying to put it as table_input.id, 
> my old friend came again and said the same thing :
>
> description = 'ID %s deleted in table %s' % (table_input.id, table) )
> AttributeError: 'NoneType' object has no attribute 'id'
>
>
> actually, that's how i handle it right now, if i want to use the quite 
> format for getting an id in auth_event description field during deleting a 
> record in tables, i just handle it via onupdate n ondelete (form level). 
> the problem is when using onupdate n ondelete is it's just handle it on 
> form level not database level. 
> for example, in case, when user create an invoice, it will automatic 
> update the product table (using after_insert callback, to update the 
> product table on qty field), on quantity field (descrease the qty product 
> table depend on qty on invoice table)
> if i use database callback it can be recorded in auth_event, if using 
> onupdate, it can not be recorded in auth_event.
>
> thanks and best regards,
> stifan
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to