# HG changeset patch # User Paul Boddie # Date 1274646389 -7200 # Node ID 271b22cfb2b804855e408a37ac0dae08017d4f40 # Parent bc13ba302b59952769dada0a8c2ddd7ebb268c8c Added SlideShow action resources installation upon installing a theme. diff -r bc13ba302b59 -r 271b22cfb2b8 moinsetup.py --- a/moinsetup.py Sun May 23 03:19:15 2010 +0200 +++ b/moinsetup.py Sun May 23 22:26:29 2010 +0200 @@ -65,6 +65,11 @@ web_user = "www-data" web_group = "www-data" + # MoinMoin resources. + + theme_master = "modernized" + extra_theme_css_files = ["SlideShow.css"] + def __init__(self, moin_distribution, prefix, web_app_dir, web_site_dir, common_dir, url_path, superuser, site_name, front_page_name, theme_default=None): @@ -416,6 +421,18 @@ shutil.rmtree(target_dir) shutil.copytree(join(theme_dir, d), target_dir) + # Copy additional resources from other themes. + + resources_source_dir = join(self.htdocs_dir, self.theme_master) + target_dir = join(resources_dir, "css") + + status("Copying resources from %s..." % resources_source_dir) + + for css_file in self.extra_theme_css_files: + css_file_path = join(resources_source_dir, "css", css_file) + if exists(css_file_path): + shutil.copy(css_file_path, target_dir) + # Command line option syntax. syntax_description = " ... [ --method=METHOD [ ... ] ]"