'Return template sources for the given theme and if request object is None (this would be the case for
management commands) return template sources for all themes.'

@staticmethod
def get_theme_template_sources():

    if (not get_current_request()):
        return get_all_theme_template_dirs()
    else:
        theme = get_current_theme()
        return (theme and theme.template_dirs)
