added index package for multikey dictionaries
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1509 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									c22f936ba8
								
							
						
					
					
						commit
						57e2c74ec9
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -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')] |   >>> registry[('index.html', 'task', 'bugfixes', 'Custom')] | ||||||
|   'Global index.html for Custom skin' |   'Global index.html for Custom skin' | ||||||
| 
 | 
 | ||||||
|  | Index entries that are present in the stored dictionaries must always match: | ||||||
|  | 
 | ||||||
|   >>> registry[('index.html', 'topic', 'zope3', 'Custom')] |   >>> registry[('index.html', 'topic', 'zope3', 'Custom')] | ||||||
|   'index.html for type "topic"' |   'index.html for type "topic"' | ||||||
| 
 | 
 | ||||||
|   >>> registry.get(('edit.html', 'task', 'bugfixes', 'Custom')) |   >>> registry.get(('edit.html', 'task', 'bugfixes', 'Custom')) | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  |   >>> registry[('edit.html', None, None, 'Custom')] = 'edit.html for Custom skin' | ||||||
|  | 
 | ||||||
|  |   >>> registry.get(('edit.html', 'task', 'bugfixes')) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm