[Zope] Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
Hi I've got this piece of code which is returning a keyerror on 'results' as I haven't set up a dictionary for the variables. I'm not sure what the syntax is for this within the ZPT. I've read about the 'options' dictionary. Can I use that? Thanks First Name  -- michael ___

Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread Paul Winkler
On Thu, Nov 01, 2007 at 12:48:04PM +, michael nt milne wrote: > Hi > > I've got this piece of code which is returning a keyerror on 'results' as I > haven't set up a dictionary for the variables. (snip) > > > First Name  > "http://mail.zope.org/mailman/listinfo/zope ** No cross posts or

[Zope] Calendar Tag Product question

2007-11-01 Thread Thomas Bennett
Zope Version(Zope 2.9.7-final, python 2.4.3, linux2) Python Version 2.4.3 (#1, Mar 14 2007, 18:51:08) [GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] System Platform linux2 We are using Corporate Calendar which requires the Calendar product for CalendarTag.py. I have written a replacemen

Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
yeah I have modified to this First Name  but get this as a result. Thanks for the reply. Module Products.PTProfiler.ProfilerPatch, line 32, in __patched_call__ Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: query(id='IT') Module Python expression "quer

[Zope] Re: Defining a dictionary in ZPT?

2007-11-01 Thread Radim Novotny
michael nt milne napsal(a): yeah I have modified to this First Name  1) don't make spaces around = in HTML attributes: tal:define="query here/testquery" 2) Why do you use repeat['result'] ? Can you point us to documentation where did you read it ? tal:replace="result/first

Re: [Zope] Calendar Tag Product question

2007-11-01 Thread Jaroslav Lukesh
- Original Message - From: "Thomas Bennett" <[EMAIL PROTECTED]> fine. Today, November 1, on both calendars not all events are appearing in the calendar from the default view. If you click back to October and then back to November all of the events appear, this also sets the date-calen

Re: [Zope] Re: Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
1) don't make spaces around = in HTML attributes: tal:define="query here/testquery" a mistake 2) Why do you use repeat['result'] ? Can you point us to documentation where did you read it ? tal:replace="result/firstname" should work as expected or tal:replace="python:result[ 'firstn