Пример #1
0
 def __init__( self ):
     """
     Establishes SQLAlchemy session, which is then reused by all calls
     """
     try:
         self.session = heckle_createSessionInstance()
     except:
         LOGGER.exception("HICCUP:INIT: Problem Creating a Session.")
         raise Exception("HICCUP:INIT: Problem Creating a Session.")
     self.hw_fields = HW_FIELDS
     self.node_count = 0
     self.node_list = []
     self.glossary( )
Пример #2
0
 def __init__( self ):
      """
      Establishes SQLAlchemy session, which is then reused by all calls
      """
      try:
           self.session = heckle_createSessionInstance()
           #logger.debug("HICCUP: INIT: Session Created")
           #print "HICCUP:  Session Created."
      except:
           logger.exception("HICCUP: INIT: Problem Creating a Session.")
           raise Exception("HICCUP: INIT: Problem Creating a Session.")
      self.glossary = self.get_glossary( )
      self.hw_fields = self.glossary.keys()
      self.node_list = self.list_all_nodes( )
      self.node_count = len(self.node_list)