PageRenderTime 34ms CodeModel.GetById 27ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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