RES: [Zope] Help needed in desiging the page.
Parimal
parimalk at cdacindia.com
Wed Jun 16 00:31:58 EDT 2004
Dear Jose,
Thank you for your information.
Yes i am using page template. I have Index_html page which calls to
infoPython which create sql string and send it to infoSQL_method as
"return
container.ResultSql(Atte=finalString).dictionaries()
and it return me result of query. in the form of dictionary. Now i want
to do formating to the output which is in dictionary form in to let say
table format. how do i do that ..
Thanx in advance
parimal
Jose Henrique dos Reis wrote:
>Parimal
>
>If you're using page templates you can do this way:
>
><table tal:define="results python: here.ResultSql(Atte=finalString)" >
> <tr tal:repeat="item results">
> <td tal:content="item/column_name1">data</td>
> <td tal:content="item/column_name2">data</td>
> </tr>
></table>
>
>
>where column_nameX are the columns of your db table.
>
>José Henrique.
>
>-----Mensagem original-----
>De: Parimal [mailto:parimalk at cdacindia.com]
>Enviada em: terça-feira, 15 de junho de 2004 03:14
>Para: Zope user list
>Assunto: [Zope] Help needed in desiging the page.
>
>
> Dear All ,
>
>In my index_html page i am using post method and retrieving information
>out from mysql in the form of dictionary
>The return statement is "return
>container.ResultSql(Atte=finalString).dictionaries()"
>
>Now i need to design the out put which is in dictionary in table format.
>can any one help me to do the formating in the form of table
>
>Thanking you
>
>Parimal
>
>
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
More information about the Zope
mailing list