[Zope] Dictionary properties within Zope.
Jay, Dylan
djay@lucent.com
Mon, 30 Aug 1999 10:25:33 +1000
I suppose there isn't a dictionary because properties can be seen as
dictionary elements themselves. Create a property for Title1 and another for
Title2. I can't think off the top of my head why anything more complicated
would be needed unless you would want to group them for organizational
reasons...
> -----Original Message-----
> From: happyrhino@usa.net [mailto:happyrhino@usa.net]
> Sent: Monday, August 30, 1999 04:51
> To: zope@zope.org
> Subject: [Zope] Dictionary properties within Zope.
>
>
> I'm embarassed to be asking yet another silly question but
> after 40 minutes searching the archives and the documentation,
> can't find it. Hopefully it'll be short and sweet =
>
> I can add properties which can be lines, strings, numbers.
> But hasn't anyone found the need to add dictionaries ?
> In almost every website I've created, the global configuration
> files are full of dictionary variables.
> For example, for navigation menus we might have
> navigation = {"Title 1" : URL1, "Title2" : URL2, etc}
> from which it's then simple to generate the HTML for the navigation.
> And there are many other instances where dictionaries save the day.
>
> This would have been something very useful to put in the root
> folder properties as a form of "site configuration".
>
> The only references to dictionaries seem to be with respect to the
> REQUEST.cookies and REQUEST.form and DTML doesn't seem to have the
> mechanisms for dealing with dictionary properties on folders.
>
> I'm getting around this right now with external methods but I'm also
> hoping to move all of my code into the Zope environment.
>
> Again, sorry for yet another question. Believe me, I searched.
>
> Henry
>
>
> ____________________________________________________________________
> Get free email and a permanent address at
> http://www.netaddress.com/?N=1
>
>
>