def process_request(self, req): data = { 'systeminfo': None, 'plugins': None, 'config': None, 'interface': None } if 'CONFIG_VIEW' in req.perm('config', 'systeminfo'): # Collect system information data['system_info'] = self.env.system_info Chrome(self.env).add_jquery_ui(req) if 'CONFIG_VIEW' in req.perm('config', 'plugins'): # Collect plugin information data['plugins'] = get_plugin_info(self.env) if 'CONFIG_VIEW' in req.perm('config', 'interface'): data['interface'] = \ Chrome(self.env).get_interface_customization_files() if 'CONFIG_VIEW' in req.perm('config', 'ini'): # Collect config information data['config'] = get_configinfo(self.env) return 'about.html', data
def process_request(self, req): data = {'systeminfo': None, 'plugins': None, 'config': None, 'interface': None} if 'CONFIG_VIEW' in req.perm('config', 'systeminfo'): # Collect system information data['systeminfo'] = self.env.get_systeminfo() Chrome(self.env).add_jquery_ui(req) if 'CONFIG_VIEW' in req.perm('config', 'plugins'): # Collect plugin information data['plugins'] = get_plugin_info(self.env) if 'CONFIG_VIEW' in req.perm('config', 'interface'): data['interface'] = \ Chrome(self.env).get_interface_customization_files() if 'CONFIG_VIEW' in req.perm('config', 'ini'): # Collect config information data['config'] = get_configinfo(self.env) return 'about.html', data, None