[ZPT] building a href in zpt

2005-06-16 Thread Kenneth Gonsalves
hi, i have a postgres table like so: id integer name varchar i want to list the contents of the table and build an href like this: name my zpt code so far is: name but i cant figure out how to insert the tal:contern="result/id" after the '?=' any clues? -- regards kg http://www.livejour

Re: [ZPT] building a href in zpt

2005-06-17 Thread Kenneth Gonsalves
On Friday 17 Jun 2005 12:37 pm, Phillip Hutchings wrote: > > > tal:content="result/name">name > > > > but i cant figure out how to insert the tal:contern="result/id" > > after the '?=' > > > > any clues? > > You do it the way the documentation tells you to: > tal:content="result/name">name than

Re: [ZPT] Re: building a href in zpt

2005-06-17 Thread Kenneth Gonsalves
On Friday 17 Jun 2005 5:39 pm, Wolfram Kraus wrote: > > > You should take a closer look at the ZPT documentation: > http://www.plope.com/Books/2_7Edition/ZPT.stx > http://www.plope.com/Books/2_7Edition/AdvZPT.stx i realise that - but sometimes looking is not understanding! I have read these chap

[ZPT] calling ZPT from script python - problem

2005-06-20 Thread Kenneth Gonsalves
hi i am having a very weird experience. I have a page template called manageheads. This requires a parameter called 'companyname' to be passed to it. I access this option as: python:somefunction(companyname=options['companyname']) when i call the ZPT from the web like so: http://.../manageheads?c

Re: [ZPT] Re: calling ZPT from script python - problem

2005-06-20 Thread Kenneth Gonsalves
On Monday 20 Jun 2005 5:26 pm, Tonico Strasser wrote: > Kenneth Gonsalves schrieb: > > hi > > i am having a very weird experience. I have a page template > > called manageheads. This requires a parameter called > > 'companyname' to be passed to it. I access th

Re: [ZPT] Re: calling ZPT from script python - problem

2005-06-21 Thread Kenneth Gonsalves
On Tuesday 21 Jun 2005 11:27 pm, Dieter Maurer wrote: > Kenneth Gonsalves wrote at 2005-6-21 09:08 +0530: > > ... > >the variable in question is 'compname' which is either > >request['compname'] or options['compname'] depending on how the > &

Re: [ZPT] Re: calling ZPT from script python - problem

2005-06-23 Thread Kenneth Gonsalves
On Wednesday 22 Jun 2005 8:19 am, Kenneth Gonsalves wrote: > i solved it like this: > > python:request.set('compname',options['compname']) > and then accessed it as > request['compname'] > > from what i can see, the end script called is a recur

[ZPT] checking radio buttons

2005-06-23 Thread Kenneth Gonsalves
hi, i have two radio buttons - 'yes' and 'no'. they have a name as 'fixed'. Depending on the value of 'fixed' either 'yes' or 'no' should be checked. I tried this: Yes Not Editable but doesnt work any easy way of doing this? -- regards kg http://www.livejournal.com/users/lawgon t

Re: [ZPT] Re: checking radio buttons

2005-06-23 Thread Kenneth Gonsalves
On Thursday 23 Jun 2005 6:35 pm, Wolfram Kraus wrote: > Kenneth Gonsalves wrote: > > hi, > > i have two radio buttons - 'yes' and 'no'. they have a name as > > 'fixed'. Depending on the value of 'fixed' either 'yes

[ZPT] date and tree widgets

2005-06-30 Thread Kenneth Gonsalves
hi in zpt, are there date selector widgets or tree selector widgets for use in forms available? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! ___ ZPT mailing list ZPT@zope.org http://mail.zope.org

[ZPT] calling a python script from ZPT

2005-07-01 Thread Kenneth Gonsalves
hi i have a python script called getnames i call it like this now this script is in ploneroot/mainpage if i call this from the mainpage folder or any sub folder there is no problem. But i want to call it from somewhere else in the site i tried: python:${plone_url}.mainpage.getnames() and pytho

Re: [ZPT] calling a python script from ZPT

2005-07-02 Thread Kenneth Gonsalves
On Sunday 03 Jul 2005 3:57 am, David Pratt wrote: > Hi Ken. One easy solution is to put your scripts in your own skins > folder or in the custom folder > and they are available anywhere in your app. I think this is > covered in the plone book somewhere, > maybe under customization. yep - thats wh

[ZPT] redirection in a zpt

2005-07-08 Thread Kenneth Gonsalves
hi, in a zpt, i use tal:condition to check something. If it is true, the browser should redirect to another template. How do it do this? In python cgi i was doing: print "Location:" "url_to_go_to/n/n" any clues? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org

Re: [ZPT] How to create a file "on the fly" ?

2005-10-13 Thread Kenneth Gonsalves
On Thursday 13 Oct 2005 2:04 pm, Nicolas Georgakopoulos wrote: > I have a page that users fill info and a button to submit that info. > When the button is pressed I want to create a file with some text > content. 1.How can I create a file to send it by mail ? > 2.When I have send the file by mail