def get_theme_by_identifier(identifier, settings_obj=None):
 for theme_cls in get_provide_objects('xtheme'):
  if (theme_cls.identifier == identifier):
   return theme_cls(settings_obj=settings_obj)
 return None

def get_theme_by_identifier ( identifier , settings_obj = None ) : for theme_cls in get_provide_objects ( 'xtheme' ) : if ( theme_cls . identifier == identifier ) : return theme_cls ( settings_obj = settings_obj ) return None
get an instantiated theme by identifier .