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