I think I was able to define readable auto computeable fields (fields
were able to re-compute themselves on insert or update, at least with
Sqlite) in the past. This is no longer supported (of course, if former
versions did)?
On 17 nov 2011, 11:25, David Manns <
dgma...@gmail.com> wrote:
> I have finally figured out the cause of my problem, though not why
> there was inconsistency in behavior with somecomputedfields updating
> and others not. I was putting writable=false and readable=false on
> thecomputedfields in my model. I'm not sure why I thought this was
> correct usage; it makes sense that readable=false might be needed to
> prevent thefieldfrom being displayed in forms, but given that the
> form won't show thefield, writable=false would be unnecessary.
> It seems that neither writable=false nor readable=false is needed forcomputedfields, they appear to be automatically not displayed in
> SQLFORM andCRUD. Readable=false causes no harm but writable=false
> *MAY* cause thefieldto not be recomputed on update, though it will
> becomputedon record creation. This behavior is still present in the