[Zope] Accessing Dictionary Values with URL Traversal

Thomas Guettler Thomas Guettler <thomas@thomas-guettler.de>
Fri, 24 Aug 2001 09:42:52 +0200


I just had the idea that it could be possible to access the values of
a dictionary with URL traversal:

A object of the following class:

class MyClass:
	myDict={
		"foo": "<html> bar </html>", 
		"dtml": DTMLFile("foo.dtml")
		}

could be accessed like this:

http://localhost:8080/myClassObject/myDict/foo
 --> <html> bar </html>

http://localhost:8080/myClassObject/myDict/dtml
 --> foo.dtml

Is something like this already possible?

The above thing would be sometimes better than an ObjectManager,
because you can have serveral dictionaries in one class. OK, you could
use an ObjectManager which contains ObjectManagers, too. Nevertheless
I would like to know what you think!


-- 
Open Source Software Solutions 
Thomas Guettler <thomas@thomas-guettler.de>
http://www.thomas-guettler.de