Re: Fwd: Re: Poi update

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20060223125201.GJ4398@cotia>
On Sat, Feb 11, 2006 at 01:31:26PM -0000, Martin Aspeli wrote:
| On Sat, 11 Feb 2006 12:21:40 -0000, Sidnei da Silva  
| <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]> wrote:
| 
| >What's the issue? It's helpfully logging a message that the field is
| >not writeable, nothing else.
| 
| I have a field that has mode='r' on it, and every time someone saves my  
| form, their log fills up with messages that the field is not writeable. I  
| *know* it's not writeable - I explicitly said so. :-)
| 
| (and I've had bug reports about this, people thinking it's a serious  
| problem)

Looking at the code, seems like this is being called from updateAll,
which got a key for the non-writeable field in kwargs.

This is an error which must be fixed in whatever is passing this key
to updateAll, that's why its being logged. Non-writeable fields should
not be editable or even hidden in the UI, if that's happening it's a
bug. A value simply should *not* be provided for them, since there's
no point anyway.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.