Commits

Matthew Schinckel committed c886987

Removed unused file.

Comments (0)

Files changed (1)

hypermedia/utils.py

-class RelList(list):
-    """
-    A list subclass that allows us to use dot notation to search for elements
-    that match the reltype.
-    
-    >>> links = RelList([{"rel":"self", "href": "self"}, {"rel":"other", "href":"other"}])
-    >>> links.self["href"]
-    'self'
-    
-    """
-    def __getattr__(self, name):
-        for item in self:
-            if item['rel'] == name:
-                return item