Ejemplo n.º 1
0
 def _setup(self):
     log.debug("Running GalaxyReportsService _setup")
     reports_option_manager = DirectoryGalaxyOptionManager(self.app,
                                                           conf_dir=self.conf_dir,
                                                           conf_file_name='reports_wsgi.ini')
     reports_option_manager.setup()
     file_path = os.path.join(self.app.path_resolver.galaxy_data, "files")
     misc.make_dir(file_path, owner='galaxy')
     new_file_path = os.path.join(self.app.path_resolver.galaxy_data, "tmp")
     main_props = {
         'database_connection': "postgres://galaxy@localhost:{0}/galaxy"
                                .format(self.app.path_resolver.psql_db_port),
         'filter-with': 'proxy-prefix',
         'file_path': file_path,
         'new_file_path': new_file_path
     }
     proxy_props = {
         'use': 'egg:PasteDeploy#prefix',
         'prefix': '/reports',
     }
     reports_option_manager.set_properties(main_props, section='app:main',
                                           description='app_main_props')
     reports_option_manager.set_properties(proxy_props,
                                           section='filter:proxy-prefix',
                                           description='proxy_prefix_props')
Ejemplo n.º 2
0
 def _setup(self):
     log.debug("Running GalaxyReportsService _setup")
     reports_option_manager = DirectoryGalaxyOptionManager(
         self.app,
         conf_dir=self.conf_dir,
         conf_file_name='reports_wsgi.ini')
     reports_option_manager.setup()
     file_path = os.path.join(self.app.path_resolver.galaxy_data, "files")
     misc.make_dir(file_path, owner='galaxy')
     new_file_path = os.path.join(self.app.path_resolver.galaxy_data, "tmp")
     main_props = {
         'database_connection':
         "postgres://galaxy@localhost:{0}/galaxy".format(
             self.app.path_resolver.psql_db_port),
         'filter-with':
         'proxy-prefix',
         'file_path':
         file_path,
         'new_file_path':
         new_file_path
     }
     proxy_props = {
         'use': 'egg:PasteDeploy#prefix',
         'prefix': '/reports',
     }
     reports_option_manager.set_properties(main_props,
                                           section='app:main',
                                           description='app_main_props')
     reports_option_manager.set_properties(proxy_props,
                                           section='filter:proxy-prefix',
                                           description='proxy_prefix_props')
Ejemplo n.º 3
0
 def _setup(self):
     log.debug("Running GalaxyReportsService _setup")
     reports_option_manager = DirectoryGalaxyOptionManager(self.app,
         conf_dir=self.conf_dir, conf_file_name='reports_wsgi.ini')
     reports_option_manager.setup()
     main_props = {
         # Place dummy database_connection for run_reports.sh's --sync-config option to replace
         'database_connection': 'dummy',
         'filter-with': 'proxy-prefix',
     }
     proxy_props = {
         'use': 'egg:PasteDeploy#prefix',
         'prefix': '/reports',
     }
     reports_option_manager.set_properties(main_props, section='app:main',
         description='app_main_props')
     reports_option_manager.set_properties(proxy_props, section='filter:proxy-prefix',
         description='proxy_prefix_props')
Ejemplo n.º 4
0
 def _setup(self):
     log.debug("Running GalaxyReportsService _setup")
     reports_option_manager = DirectoryGalaxyOptionManager(
         self.app, conf_dir=self.conf_dir, conf_file_name='reports.ini')
     reports_option_manager.setup()
     file_path = os.path.join(self.app.path_resolver.galaxy_data, "files")
     misc.make_dir(file_path, owner='galaxy')
     new_file_path = os.path.join(self.app.path_resolver.galaxy_data, "tmp")
     main_props = {
         'database_connection':
         "postgres://galaxy@localhost:{0}/galaxy".format(
             self.app.path_resolver.psql_db_port),
         'filter-with':
         'proxy-prefix',
         'file_path':
         file_path,
         'new_file_path':
         new_file_path,
         'paste.app_factory':
         'galaxy.webapps.reports.buildapp:app_factory',
         'use_new_layout':
         'true'
     }
     proxy_props = {
         'use': 'egg:PasteDeploy#prefix',
         'prefix': '/reports',
     }
     server_props = {
         'use': "egg:Paste#http",
         'port': 9001,
         'host': '127.0.0.1',
         'use_threadpool': 'true',
         'threadpool_workers': 10
     }
     reports_option_manager.set_properties(server_props,
                                           section='server:main',
                                           description='server_main_props')
     reports_option_manager.set_properties(main_props,
                                           section='app:main',
                                           description='app_main_props')
     reports_option_manager.set_properties(proxy_props,
                                           section='filter:proxy-prefix',
                                           description='proxy_prefix_props')
Ejemplo n.º 5
0
 def _setup(self):
     log.debug("Running GalaxyReportsService _setup")
     reports_option_manager = DirectoryGalaxyOptionManager(self.app,
                                                           conf_dir=self.conf_dir,
                                                           conf_file_name='reports.ini')
     reports_option_manager.setup()
     file_path = os.path.join(self.app.path_resolver.galaxy_data, "files")
     misc.make_dir(file_path, owner='galaxy')
     new_file_path = os.path.join(self.app.path_resolver.galaxy_data, "tmp")
     main_props = {
         'database_connection': "postgres://galaxy@localhost:{0}/galaxy"
                                .format(self.app.path_resolver.psql_db_port),
         'filter-with': 'proxy-prefix',
         'file_path': file_path,
         'new_file_path': new_file_path,
         'paste.app_factory': 'galaxy.webapps.reports.buildapp:app_factory',
         'use_new_layout': 'true'
     }
     proxy_props = {
         'use': 'egg:PasteDeploy#prefix',
         'prefix': '/reports',
     }
     server_props = {
         'use': "egg:Paste#http",
         'port': 9001,
         'host': '127.0.0.1',
         'use_threadpool': 'true',
         'threadpool_workers': 10
     }
     reports_option_manager.set_properties(server_props, section='server:main',
                                           description='server_main_props')
     reports_option_manager.set_properties(main_props, section='app:main',
                                           description='app_main_props')
     reports_option_manager.set_properties(proxy_props,
                                           section='filter:proxy-prefix',
                                           description='proxy_prefix_props')