Small fix to the code I posted:

On Feb 5, 2006, at 2:58 PM, Alberto Valverde wrote:

the code handling this could be something like (at Widget.display():

        d = {}
for attr in self.update_template_with: # or self.__class__.update_template_with
                d[attr] = getattr(self, attr, None)
        self.update_data(kw)
        return view.transform(kw, template=self.template)

should be:

the code handling this could be something like (at Widget.display():

        d = {}
for attr in self.update_template_with: # or self.__class__.update_template_with
                d[attr] = getattr(self, attr, None)
           d.update(kw)
        self.update_data(d)
        return view.transform(d, template=self.template)

Reply via email to