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

def Localizer::Accept::LanguageNode::_getnode (   self,
  key 
) [private]

Returns the required node. If it doesn't exists it's created.

Definition at line 165 of file Accept.py.

00165                            :
        """
        Returns the required node. If it doesn't exists it's created.
        """
        if type(key) == StringType:
            if key == '*':
                key = []
            else:
                key = key.split('-')

        if len(key) == 0:
            return self
        else:
            accept = self.children.setdefault(key[0], LanguageNode())
            return accept._getnode(key[1:])

    def __getitem__(self, key):


Generated by  Doxygen 1.6.0   Back to index