[Twisted-web] newbie: Stan syntax question

Stephen Thorne stephen at thorne.id.au
Tue Dec 14 19:23:22 MST 2004


I would probably do something like this:  
return context.tag[  
   T.table[ header_tr=T.tr[T.th["ID"],T.th["Task"],T.th["Arguments"]], [  
            [ T.td[row.get(attr)]  
              for attr in ['task_id', 'task', 'arguments']  
         for row in self.tasklist  
That is, if I wasn't just using a template that used the nevow:render="sequence". I would actually recommend n:render="sequence" over using stan like this.  

More information about the Twisted-web mailing list