[Zope3-dev] Re: Applying schema data on an object

Christian Theune ct at gocept.com
Wed Dec 13 17:37:28 EST 2006


Hi,

Rocky Burt wrote:
> This all looks good to me... but might I make the suggestion that you
> refactor the zope.formlib code that works with FormFields to use your
> function as well?  I agree it's not good to make the other code
> dependent on formlib, but of course formlib already depends on
> zope.interface and zope.schema.

Right. That was something I thought about too, however, formlib's
applyChanges function does more than that and it integrates between
those five lines a bit (e.g. detecting which fields changed, and
adapting the context to the target interface).

Christian

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20061213/aa7479f3/signature.bin


More information about the Zope3-dev mailing list