supply getLink() method as required by the interface
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3547 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									b88e68b79e
								
							
						
					
					
						commit
						2333faf7d2
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,11 @@ class LinkManager(object):
 | 
			
		|||
            link.manager = None
 | 
			
		||||
            del self.links[link.identifier]
 | 
			
		||||
 | 
			
		||||
    def getLink(self, name):
 | 
			
		||||
        result = self.query(name=name)
 | 
			
		||||
        if result:
 | 
			
		||||
            return result[0]
 | 
			
		||||
 | 
			
		||||
    def query(self, source=None, target=None, name=None, **kw):
 | 
			
		||||
        if source is None:
 | 
			
		||||
            result = self.links.values()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue