Exemple #1
0
def specify_DADGAD(mode, host):
    if mode == 'about':
        return ('-a', 'DADGAD', fishbase.O(about=u'DADGAD'))
    elif mode == 'id':
        return ('-i', fishlib.id('DADGAD', host),
                fishbase.O(id=fishlib.id('DADGAD', host)))
    elif mode == 'query':
        return ('-q', 'fluiddb/about="DADGAD"', fishbase.O(about=u'DADGAD'))
    else:
        raise ModeError('Bad mode')
Exemple #2
0
 def setUp(self):
     self.db = fishlib.Fluidinfo()
     self.user = self.db.credentials.username
     self.db.set_connection_from_global()
     self.db.set_debug_timeout(5.0)
     self.dadgadID = fishlib.id('DADGAD', self.db.host)
     self.stdout = sys.stdout
     self.stderr = sys.stderr
     self.stealOutput()
     self.hostname = ['--hostname', fishlib.choose_host()]
Exemple #3
0
 def setUp(self):
     self.db = fishlib.Fluidinfo()
     self.user = self.db.credentials.username
     self.db.set_connection_from_global()
     self.db.set_debug_timeout(5.0)
     self.dadgadID = fishlib.id(u'DADGAD', self.db.host)