This should do it: TR(i.title,XML(" ".join(i.Content.split(" ")[0:25]),A("more",_href=URL(r=request,f='Article',vars=dict(id=i.id))))
Notice the TD are automatic when obvious. On Thursday, 9 August 2012 12:44:19 UTC-5, BlueShadow wrote: > > Hi got a rather complex table which displays database entries in short > form with links to the full display of that entry. > here is a shortened version of the currently working table > I used a for loop to create each row > <tr><td>{{=i.Title}}</td><td>{{=XML( " ".join(i.Content.split(" ")[0:25]) > )}}...{{=A("more",_href=URL(r=request,f='Article',vars=dict(id=i.id > )))}}</td></tr> > > I like to convert this html to the python helper functions. Because they > just look a lot nicer. but I just can't do the conversion I either get > error messages of invalid syntax or I get no display at all if I remove the > equal signs. > The endresult look something like this: > TR(TD(...),TD(...),...,_class="TRclass") > Thanks for your help guys. > --