From 57e2c74ec977dcd96c1230c0888bc343b01da44b Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 21 Nov 2006 19:57:16 +0000 Subject: [PATCH] added index package for multikey dictionaries git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1509 fd906abe-77d9-0310-91a1-e0d9ade77398 --- index/README.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index/README.txt b/index/README.txt index ff6c03d..49e1607 100644 --- a/index/README.txt +++ b/index/README.txt @@ -51,8 +51,14 @@ The more on the left a matching key part is the higher is its priority: >>> registry[('index.html', 'task', 'bugfixes', 'Custom')] 'Global index.html for Custom skin' +Index entries that are present in the stored dictionaries must always match: + >>> registry[('index.html', 'topic', 'zope3', 'Custom')] 'index.html for type "topic"' >>> registry.get(('edit.html', 'task', 'bugfixes', 'Custom')) + + >>> registry[('edit.html', None, None, 'Custom')] = 'edit.html for Custom skin' + + >>> registry.get(('edit.html', 'task', 'bugfixes'))