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

def Localizer::Accept::Root::set (   self,
  key,
  quality 
)

Sets the quality for a language, only if the current quality is
not bigger. If the language doesn't exists it's added.

Definition at line 136 of file Accept.py.

00136                                :
        """
        Sets the quality for a language, only if the current quality is
        not bigger. If the language doesn't exists it's added.
        """
        node = self._getnode(key)
        if quality > node.quality:
            node.quality = quality



class CharsetNode(Node):


Generated by  Doxygen 1.6.0   Back to index