Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: nt', 'cw_tsbox', 'cw_tspantsbox', 'cw_timedecomposition', 'cw_timedictionary', 'cw_timeseries', 'cw_timespantimeseries', 'cw_transmissionflexibility',] for table in tables: conn = psycopg2.connect("dbname='mypegase2' user='cubicweb' host='localhost' password='cubicweb'") cur = conn.cursor() c = """ALTER TABLE %s ADD COLUMN cw_container_parent integer""" % table print c try: cur.execute(c) except Exception, exc: print 'arf',exc continue c = """ALTER TABLE cw_modeswitc Source: http://pastie.org/pastes/9260762/download
↧