The computed fields are missing if computation fails. Try pass a function 
to compute=myfunc and use a try except within the function to determine if 
the function is being called and if it fails.

Normally it fails silently if a parameter required for the computation is 
missing.

On Thursday, 24 July 2014 14:02:05 UTC-5, Leonel Câmara wrote:
>
> Stupid question time. What can cause some of my extra fields to be missing 
> from auth.user?
>
> They are only missing from auth.user if I do db.auth_user[auth.user_id] 
> the fields are there.
>
> Example of an extra field I have that doesn't show up in auth.user
>
> Field('cropped','upload', uploadseparate=True, readable=False, 
> writable=False, autodelete=True, compute=lambda row: SMARTHUMB('auth_user', 
> row.photo, (200, 200), name='cropped')),
>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to