q = projectB.query("SELECT id FROM section WHERE section=%s" % (
pg._quote(newsection,"str")));
if q.ntuples() == 0:
utils.fubar("Supplied section %s is invalid" % (newsection));
newsecid = q.getresult()[0][0];
q = projectB.query("SELECT id FROM section WHERE section=%s" % (
pg._quote(newsection,"str")));
if q.ntuples() == 0:
utils.fubar("Supplied section %s is invalid" % (newsection));
newsecid = q.getresult()[0][0];