Mercurial > hg > MPIWGWeb
comparison MPIWGStaff.py @ 203:9ce5816e89b2
faeng priority fehler ab bei biblio
author | dwinter |
---|---|
date | Thu, 27 Jun 2013 13:03:04 +0200 |
parents | c3c834cf1a6d |
children | 670b3507509d |
comparison
equal
deleted
inserted
replaced
202:c3c834cf1a6d | 203:9ce5816e89b2 |
---|---|
936 | 936 |
937 def setPublicationPriority(self,escidocid,value): | 937 def setPublicationPriority(self,escidocid,value): |
938 try: | 938 try: |
939 query="update pubmanbiblio set priority=%s where escidocid=%s and lower(key_main)=%s" | 939 query="update pubmanbiblio set priority=%s where escidocid=%s and lower(key_main)=%s" |
940 | 940 |
941 try: | |
942 x=int(value) | |
943 except: | |
944 logging.error("priority not a number") | |
945 return | |
946 | |
941 self.executeZSQL(query,[value,escidocid,self.getKey().lower()]); | 947 self.executeZSQL(query,[value,escidocid,self.getKey().lower()]); |
942 | 948 |
943 except: | 949 except: |
944 logging.error("couldn't change:") | 950 logging.error("couldn't change:") |
945 logging.error(escidocid) | 951 logging.error(escidocid) |