[Twisted-web] DOM manipulation in an athena widget
Jean-Paul Calderone
exarkun at divmod.com
Sun Oct 1 18:29:34 CDT 2006
On Sun, 01 Oct 2006 23:57:01 +0100, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
> [snip]
>
>For the info of anyone reading, I did eventually get all this working, and
>am using MochiKit for the client-side DOM stuff but calling athena widget
>callRemote channels - cool stuff like (untested copy&paste):
>
>function saveEditable(evt) {
> [snip]
>}
>
>function makeEditable(evt) {
> [snip]
>}
>
>function setupEditFields(node) {
> [snip]
>}
>
>myApp.myWidget = Nevow.Athena.Widget.subclass('myApp.myWidget');
>myApp.myWidget.methods(
> function __init__(self, node) {
> myApp.myWidget.upcall(self, '__init__', node);
> setupEditFields(node);
> });
I wonder why you chose to make those three functions free instead of
methods of your widget class?
Jean-Paul
More information about the Twisted-web
mailing list