[Twisted-web] Dynamical generated slots
Johann Siegele
j.siegele at gmx.at
Thu Nov 24 09:30:58 MST 2005
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!
More information about the Twisted-web
mailing list