Mercurial > hg > ZopePubmanConnector
view scripts/cleanPub.py @ 17:48c4a6f3b135
minor bug, handliung withdrawn entrie
author | dwinter |
---|---|
date | Wed, 26 Jun 2013 15:10:35 +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()