you dont need to set writable=False. I think it is default for conputed
fields.

I've seem this happening before, but I cant remember the reason. (may be
the writable False can be the issue)

http://zerp.ly/rochacbruno
Em 24/07/2012 07:34, "Vasile Ermicioi" <elff...@gmail.com> escreveu:

> hi,
>
> I have a function and a computed field
>
> def content_snapshot(s):
>     #do something with s
>     return modified_s
>
>
> Field("content_snapshot", "text", readable=False, writable=False,
> compute=lambda r: content_snapshot(r['content'])),
>
> and it works only for insert operations,  on updates it is not changed
>
> any thoughts?
>
> --
>
>
>
>

-- 



Reply via email to