Hello,
   im looking for a possibility to generate Slots for a livepage
dynamical.
my code for the livepage looks like this, it works fine, but i can not
update any of the slots!
   def render_mytable(self, ctx, data):
           mydetail=[]
           for i in range(1,15):
             mydetail.append([T.td [T.slot('test'+str(i), "default")]])
             if i % 3 is 0:
              mydetail.append([T.tr[T.td['-test-']]],)
           return ctx.tag[mydetail]

template:
<table nevow:render="mytable" name="mytabletest"/>

it should be possible that the user can change the text in the row n and
colume x.

this do not work:
client.set('test1', text)

i think the problem is, that the slots are not hardcoded.

is there a other possibility.

thank you very much!


_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to