def available_content_databases():
 pattern = re.compile('content_(?P<channel>[^_]+)_(?P<language>[^_]+).sqlite')
 for filename in glob.iglob(django_settings.DEFAULT_DATABASE_DIR):
  match = pattern.search(filename)
  if match:
   (yield match.group(1, 2))

def available_content_databases ( ) : pattern = re . compile ( 'content_(?P<channel>[^_]+)_(?P<language>[^_]+).sqlite' ) for filename in glob . iglob ( django_settings . DEFAULT_DATABASE_DIR ) : match = pattern . search ( filename ) if match : ( yield match . group ( 1 , 2 ) )
generator to return the channel and language for every content database that exists in the system .