[Zope-dev] schema upgrades with zope.formlib + FIX

Hanno Schlichting hanno at hannosch.eu
Tue Feb 15 07:25:11 EST 2011


On Tue, Feb 15, 2011 at 1:21 PM, Johannes Raggam <raggam-nl at adm.at> wrote:
> while - IMO - zope.schema throws that error justifiably, i think
> zope.formlib should handle it more gracefully in setUpEditWidgets. i
> think, this error comes with every schema upgrade for zope.formlib based
> edit-forms. so, what do you think of following patch?

The usual approach is to add new attributes as class attributes to the
persistent object. Or write an actual database upgrade step, either
via something like zope.generations or with a GenericSetup upgrade
step.

But for zope.formlib it make indeed make sense to be more lenient
here. So +0 on your patch.

Hanno


More information about the Zope-Dev mailing list