def theme():
 if (not g['stuff']):
  for theme in g['themes']:
   line = light_magenta(theme)
   if (c['THEME'] == theme):
    line = (((' ' * 2) + light_yellow('* ')) + line)
   else:
    line = ((' ' * 4) + line)
   printNicely(line)
 else:
  try:
   c['THEME'] = reload_theme(g['stuff'], c['THEME'])
   g['decorated_name'] = (lambda x: color_func(c['DECORATED_NAME'])((('[' + x) + ']: ')))
   printNicely(green('Theme changed.'))
  except:
   printNicely(red('No such theme exists.'))

def theme ( ) : if ( not g [ 'stuff' ] ) : for theme in g [ 'themes' ] : line = light_magenta ( theme ) if ( c [ 'THEME' ] == theme ) : line = ( ( ( ' ' * 2 ) + light_yellow ( '* ' ) ) + line ) else : line = ( ( ' ' * 4 ) + line ) printNicely ( line ) else : try : c [ 'THEME' ] = reload_theme ( g [ 'stuff' ] , c [ 'THEME' ] ) g [ 'decorated_name' ] = ( lambda x : color_func ( c [ 'DECORATED_NAME' ] ) ( ( ( '[' + x ) + ']: ' ) ) ) printNicely ( green ( 'Theme changed.' ) ) except : printNicely ( red ( 'No such theme exists.' ) )
restful crud controller .