Mercurial > hg > MPIWGWeb
changeset 283:37b89e8a8828
merging...
author | casties |
---|---|
date | Thu, 25 Jun 2015 13:43:50 +0200 |
parents | d83971b49b26 (diff) a1edd65c8ab7 (current diff) |
children | 1a103b073c72 |
files | MPIWGStaff.py |
diffstat | 1 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGStaff.py Thu May 21 09:27:59 2015 +0200 +++ b/MPIWGStaff.py Thu Jun 25 13:43:50 2015 +0200 @@ -305,7 +305,8 @@ return ret+"</body></html>" - + + def updateConeIds(self,REQUEST): """holt alle coneids von allen member, die methode getconeid traegt diese dann auch all in die key tabelle ein, falls sie ich fehlen""" @@ -315,8 +316,7 @@ cids.append(mem.getConeId()) return cids - - + def getConeIDsFromDB(self,REQUEST): """holt die cone ids aus personalwww und gibt sie als RDF fuer den cone import zurueck""" @@ -414,18 +414,20 @@ return str(id) getId = getUsername + + + def getConeId(self): """return cone ID""" - results= self.folder.executeZSQL("SELECT coneid FROM keys WHERE key_main = %s",[self.content.key]) - for res in results: + results= self.folder.executeZSQL("SELECT coneid FROM keys WHERE key_main = %s",[self.content.key]) + for res in results: return res.coneid - + newConeId="http://pubman.mpiwg-berlin.mpg.de/cone/persons/resource/%s"%self.content.key - - results = self.folder.executeZSQL("INSERT INTO keys (coneid,key_main) values(%s,%s)",[newConeId,self.content.key]) - + + results = self.folder.executeZSQL("INSERT INTO keys (coneid,key_main) values(%s,%s)",[newConeId,self.content.key]) + return newConeId - def getPublishedImageUrl(self, width=None, height=None, showAlways=False): """returns the URL to the image if it is published"""