Re: Plone Portlet um Attribute erweitern

Matthias Teege <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
On 15:50 Mon 07 Jun, Andreas Jung wrote:

Hallo,

> >> bearbeiten mit einem "Attribute Error" fehl. Wie ergänze ich die bereits
> >> vorhandenen Portlets um das neue Attribut?
> > 
> > Traceback?

2010-06-08 10:16:40 ERROR Zope.SiteErrorLog
http://localhost:8080/p/++contextportlets++plone.rightcolumn/news-1/edit
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module plone.app.portlets.browser.formhelper, line 124, in __call__
  Module zope.formlib.form, line 769, in __call__
  Module Products.Five.formlib.formbase, line 55, in update
  Module zope.formlib.form, line 732, in update
  Module zope.formlib.form, line 802, in setUpWidgets
  Module zope.formlib.form, line 403, in setUpEditWidgets
  Module zope.schema._bootstrapfields, line 171, in get
AttributeError: nfield

> Ggf. reicht es aus in der entsprechenden Klasse eine Klassenvariable mit
> einem passenden Defaultwert einzubauen.

Das wäre sicher die beste Lösung. Allerdings ist mir nicht klar, welche
Variable da gebraucht wird. Der Code besteht nur aus:

class EditForm(base.EditForm):
  form_fields = form.Fields(IFrontnewsPortlet)
  label = _(u"Edit News Portlet")
  description = _(u"This portlet displays recent News Items.")

Vielen Dank
Matthias



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.