Logo Search packages:      
Sourcecode: zope-cps-localizer version File versions  Download package

def Localizer::Accept::LanguageNode::__getitem__ (   self,
  key 
)

Traverses the tree to get the object.

Definition at line 183 of file Accept.py.

00183                               :
        """
        Traverses the tree to get the object.
        """
        key = key.split('-', 1)
        x = key[0]

        try:
            y = key[1]
        except IndexError:
            return self.children[x]
        else:
            return self.children[x][y]



class AcceptCharset(Root, CharsetNode):


Generated by  Doxygen 1.6.0   Back to index