[Twisted-Python] The problem with Twisted...
Andrew Bennetts
andrew-twisted at puzzling.org
Thu Jun 5 03:53:39 MDT 2003
On Thu, Jun 05, 2003 at 11:28:06AM +0200, Philippe Lafoucri?re wrote:
[...]
>
> I think I can put :
> ****
> if data > 10:
> newNode = widget.getPattern("large")
> else:
> newNode = widget.getPattern("small")
> newNode.appendChild(request.d.createTextNode(str(data)))
> widget.appendChild(newNode)
> ****
> in the wvfactory_foo !?
But wvfactory_foo's third argument is a DOM node, not a generic Widget.
There is no 'widget' in a wvfactory_.
-Andrew.
More information about the Twisted-Python
mailing list