/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

  1. import sys, config
  2. from galaxy.web import security
  3. import galaxy.webapps.demo_sequencer.registry
  4. class UniverseApplication( object ):
  5. """Encapsulates the state of a Universe application"""
  6. def __init__( self, **kwargs ):
  7. print >> sys.stderr, "python path is: " + ", ".join( sys.path )
  8. self.name = "demo_sequencer"
  9. # Read config file and check for errors
  10. self.config = config.Configuration( **kwargs )
  11. self.config.check()
  12. config.configure_logging( self.config )
  13. # Set up sequencer actions registry
  14. self.sequencer_actions_registry = galaxy.webapps.demo_sequencer.registry.Registry( self.config.root, self.config.sequencer_actions_config )
  15. # Security helper
  16. self.security = security.SecurityHelper( id_secret=self.config.id_secret )
  17. def shutdown( self ):
  18. pass