[Zope] Dealing with Dictionaries
James W. Howe
jwh@allencreek.com
Thu, 02 Mar 2000 09:40:28 -0500
At 08:21 AM 3/2/00 -0600, Evan Simpson wrote:
>----- Original Message -----
>From: James W. Howe <jwh@allencreek.com>
> > Here's what I've got. First, I have a DTMLMethod named
>creditCardsAccepted
>
> > I then have a method called creditCardSelections which is defined as
>follows:
> >
> > <dtml-return "creditCardsAccepted.keys()">
>
>Try <dtml-return "creditCardsAccepted().keys()">
Followup,
I just realized that I had two definitions of "creditCardsAccepted". One
was defined inside my ZClass, and one was defined in the folder containing
the ZClass. The one in the container was just answering a list. When I
changed that one to answer a dictionary things worked. I then simply
deleted the DTMLMethod in the containing folder and now I get a name
error. Now I'm really confused. After deleting the higher level method, I
now have the creditCardsAccepted and the creditCardSelections both in the
same folder. It seems, however, that the creditCardSelections cannot see
the sibling method.
I'm clearly overlooking something.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103