Mercurial > hg > ZopePubmanConnector
view scripts/cleanPub.py @ 24:345dd913f520 default tip
new pubman
author | Dirk Wintergr?n <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 10 Jan 2014 12:43:43 +0100 |
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()