Mercurial > hg > ZopePubmanConnector
view scripts/cleanPub.py @ 22:2abc89d58140
more error handling
author | casties |
---|---|
date | Tue, 01 Oct 2013 18:13:12 +0200 |
parents | 3e154b154b6f |
children |
line wrap: on
line source
''' Created on 14.06.2013 @author: dwinter ''' import web db = web.database(dbn='postgres', db='personalwww', user='dwinter',host="tuxserve03") tab = db.select("pubmanbiblio_old") data =set() for res in tab: if res.priority is not None: data.add((res.key_main,res.escidocid,res.priority)) for d in data: db.insert("pubmanbiblio",key_main=d[0],escidocid=d[1],priority=d[2]) db.close()