Created
July 17, 2014 12:08
-
-
Save switowski/bb01cbd8c398a5825391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updated = run_sql("update bibrec_bibdoc set docname=%s where id_bibdoc=%s and id_bibrec=%s", (newname, self.id, recid)) | |
if not updated: | |
raise InvenioBibDocFileError, "Docname for recid %s and bibdoc %s was not changed" % (recid, self.id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment