Exemplo n.º 1
0
def getLocale(urlLocale, acptLang):
  if urlLocale in getSupportedLocales():
    return urlLocale
  else:
    return determineLocale(acptLang)
Exemplo n.º 2
0
def checkData(urlLocale, userLocale):
  if userLocale not in getSupportedLocales():
    raise web.notfound()
  if urlLocale not in getSupportedLocales() and None:
    raise web.notfound()