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

2011-02-15 Thread Johannes Raggam
dear zopistas, while trying to add a new schema field to an already registered plone portlet, i got following traceback: 2011-02-14 23:11:55 ERROR Zope.SiteErrorLog 1297721515.110.63984381121 http://localhost:8880/info/uber-uns/geschichte/++contextportlets

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

2011-02-15 Thread Hanno Schlichting
On Tue, Feb 15, 2011 at 1:21 PM, Johannes Raggam raggam...@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.

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

2011-02-15 Thread Johannes Raggam
well, for schema upgrades, also following patch seems to be necessary: From c11064b8d8a7607d41071250f587f097f8c130a3 Mon Sep 17 00:00:00 2001 From: Johannes Raggam raggam...@adm.at Date: Tue, 15 Feb 2011 14:29:56 +0100 Subject: [PATCH 2/2] gracefully set newvalue for upgraded schemas, where