def create_config(wikiname, request): config_dict = config.reduce_to_local_config(config.CONFIG_VARS) config_dict['wiki_id'] = None config_dict['wiki_name'] = wikiname config_dict['active'] = True site_conf = config.Config(wikiname, request) site_conf.set_config(wikiname, config_dict, request)
def create_config(request, wiki_id=None): config_dict = config.reduce_to_local_config(config.CONFIG_VARS) # want to make sure we increment the wiki_id properly del config_dict['wiki_id'] if wiki_id is not None: config_dict['wiki_id'] = wiki_id config_dict['active'] = True site_conf = config.Config(config.wiki_name, request, process_config=False) request.config = site_conf request.config.active = True request.config.set_config(request.config.wiki_name, config_dict, request) request.setup_basics()
def wiki_settings(request, file): local_config = config.reduce_to_local_config( request.config.__dict__) file.write('<settings %s />\n' % generate_attributes(local_config))
def wiki_settings(request, file): local_config = config.reduce_to_local_config(request.config.__dict__) file.write('<settings %s />\n' % generate_attributes(local_config))