/lib/galaxy/webapps/demo_sequencer/app.py
https://bitbucket.org/cistrome/cistrome-harvard/ · Python · 19 lines · 14 code · 1 blank · 4 comment · 0 complexity · 6e1b3f88d845b1f01b4b9bc85a5af3c0 MD5 · raw file
- import sys, config
- from galaxy.web import security
- import galaxy.webapps.demo_sequencer.registry
- class UniverseApplication( object ):
- """Encapsulates the state of a Universe application"""
- def __init__( self, **kwargs ):
- print >> sys.stderr, "python path is: " + ", ".join( sys.path )
- self.name = "demo_sequencer"
- # Read config file and check for errors
- self.config = config.Configuration( **kwargs )
- self.config.check()
- config.configure_logging( self.config )
- # Set up sequencer actions registry
- self.sequencer_actions_registry = galaxy.webapps.demo_sequencer.registry.Registry( self.config.root, self.config.sequencer_actions_config )
- # Security helper
- self.security = security.SecurityHelper( id_secret=self.config.id_secret )
- def shutdown( self ):
- pass