(self, params)
Add seq.
Add seq.
Add seq .
def cmd_londiste_add_seq(self, params):
        """Add seq."""

        curs = self.db.cursor()
        q = """select * from londiste.local_add_seq(%s, %s)"""
        for seq in params['seqs']:
            curs.execute(q, [self.cur_queue, seq])
            res = curs.fetchone()
            print res[0], res[1]
        print 'ADD_SEQ'
def cmd_londiste_add_seq ( self , params ) : curs = self . db . cursor ( ) q = """select * from londiste.local_add_seq(%s, %s)""" for seq in params [ 'seqs' ] : curs . execute ( q , [ self . cur_queue , seq ] ) res = curs . fetchone ( ) print res [ 0 ] , res [ 1 ] print 'ADD_SEQ'