On 2/15/11 2:22 AM, Johannes Raggam wrote: > hey all, > > how can i add a new schema field to an already registered portlet? > > 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. ---------- 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 _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/product-developers
