On Tue, 2011-02-15 at 10:19 -0800, David Glick wrote: > > when i want to visit the edit form of the portlet, i get an error, > > saying that the new attribute does not exist. for me, it seems that this > > is a but somewhere between plone.app.portlets and zope.formlib. > Add the new attribute as a class attribute of the portlet assignment > class. e.g. > > class Assignment(base.Assignment): > image_size = 42 > > Then existing assignment instances which don't have that attribute will > still get them from the class.
ah, that is actually easy... i wrote just a little howto, overseeing your mail. i suggest to walk over every portlet instance in the portal - and put that logic into a function which can be reused for schema updates... but i guess, your fix makes this howto obsolete - because your suggestion is just much easier and more failsave, isn't it? for the howto, see: https://svn.plone.org/svn/collective/collective.developermanual/trunk/source/portlets/appendix/schema_update.txt ,,,johannes raggam > > > ---------- > David Glick > Web Developer > [email protected] > 206.286.1235x32 > > Groundwire: You Are Connected > http://groundwire.org > > Online tools and strategies for the environmental movement. Sign up for > Groundwire News! > http://groundwire.org/email-capture > > Check out our 2010 Website Benchmarks Report. How do you stack up? > http://groundwire.org/resources/articles/2010-website-benchmarks-report > -- johannes raggam / thet python plone zope development http://johannes.raggam.co.at/ mailto:[email protected] http://bluedynamics.com/ _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/product-developers
