Пример #1
0
 def _tget(self, key):
     value = super(RoutePrefs, self).get(key)
     if value is None: return None
     if not self.translated:
         return value
     tvalue = key_string(self.translated, key)
     if tvalue is not None:
         return tvalue
     return value
Пример #2
0
 def _get(self, key, default=None):
     return key_string(self.store, self._dotted_key(key), default)