[Zope-dev] tal:define for a dictionary of dictionaries

2002-09-06 Thread Anton Hughes
Further to my earlier question about creating a dictionary of dictionaries (which is working now - thanks very much!), I am now doing the ZPT to draw it. But I'm not sure how to make this d-o-d, which is returned by a PythonScript in the same directory, available. This is what I have so far:

[Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
at 01CFFEE0gt;, 'traverse_subpath': []}, ('9/9/02',), {}, None)) File Script (Python), line 23, in render_bookings TypeError: (see above) Anton Hughes Data Administrator Childhood Determinants of Adult Health Project Menzies Centre for Population Health Research GPO Box 252-23, Hobart Tasmania 7001

RE: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
September 2002 3:12 PM To: Anton Hughes; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Trouble populating a dictionary of dictionaries After playing around for too long on it, I can't seem to get it to work. I even tried pre-filling the d-o-d with empty strings. I just don't understand what I am doing

RE: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Anton Hughes
Thanks Andy, Error Type: TypeError Error Value: unsupported operand type(s) for - resource = row['resource'] - 1 ^^^ That was pretty stupid of me. A hangover from my earlier attempt at a 2D array :( Anton