Beispiel #1
0
    def __init__(self, *args, **kwargs):
        """Verify that we can connect to the configured WS instance"""
        super(KBaseWSManager, self).__init__(*args, **kwargs)
        if not self.kbasews_uri:
            raise HTTPError(412, u"Missing KBase workspace service endpoint URI.")

        # Init the session info we need.
        self.narrative_logger = get_narrative_logger()
        self.user_service = UserService()
Beispiel #2
0
    def __init__(self, *args, **kwargs):
        """Verify that we can connect to the configured WS instance"""
        super(KBaseWSManager, self).__init__(*args, **kwargs)
        if not self.kbasews_uri:
            raise HTTPError(412, "Missing KBase workspace service endpoint URI.")

        # Init the session info we need.
        self.narrative_logger = get_narrative_logger()
        self.user_service = UserService()
Beispiel #3
0
    def __init__(self, *args, **kwargs):
        """Verify that we can connect to the configured WS instance"""
        super(KBaseWSManager, self).__init__(*args, **kwargs)
        if not self.kbasews_uri:
            raise HTTPError(412,
                            u"Missing KBase workspace service endpoint URI.")

        # Map Narrative ids to notebook names
        mapping = Dict()
        # Map notebook names to Narrative ids
        rev_mapping = Dict()
        # Setup empty hash for session object
        self.kbase_session = {}
        # Init the session info we need.
        self.narrative_logger = get_narrative_logger()