Re: [ZPT] How to getId() of pt from a Script (Python)

2005-10-04 Thread José Henrique
Use "print template.getId()". 2005/10/4, Chris Miles <[EMAIL PROTECTED]>: > I have a Page Template in a folder: folder1/mypage.pt > containing: > Testing > > myscript is a Script (Python) containing: > print context.getId() > return printed > > Now, when folder1/mypage.pt is called TTW, it d

Re: [ZPT] Setting i18n:domain to a variable

2006-11-23 Thread José Henrique
Use tal:attributes to set the values: someText José Henrique. 2006/11/22, Josef Meile <[EMAIL PROTECTED]>: Hi, I'm wondering if something like this is possible: someText I even replaced the i18n:domain directive by: i18n:domain="python:request.get('domain')"

Re: [ZPT] dynamic table

2007-02-06 Thread José Henrique
Try this way: Reformat getColumnName() > =>['id','title','address'] Reformat getColumnData =>[(1, 'vincent ', 1233), (2,'nicolas ', ), (3,'nani ',),(4, 'roby ',)] Test with this: