#NEWLINE# def list_themes( ) : #NEWLINE# #INDENT# " Return the list of availables themes\n    >>> list_themes()\n    [{'path': u'~/hg/ionyweb3/ionyweb/contrib/themes/jungleland', 'slug': u'jungleland'}]\n\n    " #NEWLINE# unique_slug = [ ] #NEWLINE# themes_list = [ ] #NEWLINE# for theme_dir in settings . THEMES_DIRS : #NEWLINE# #INDENT# themes = ThemeStorage ( location = theme_dir ) #NEWLINE# ( directories , files ) = themes . listdir ( './' ) #NEWLINE# new_list = [ ] #NEWLINE# for t in directories : #NEWLINE# #INDENT# if ( t not in unique_slug ) : #NEWLINE# #INDENT# new_list . append ( { #NEWLINE# #INDENT# 'slug' : t , #NEWLINE# 'path' : themes . path ( t ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# unique_slug . append ( t ) #NEWLINE# #UNINDENT# #UNINDENT# themes_list += new_list #NEWLINE# #UNINDENT# return themes_list