Guest User

Untitled

a guest
Dec 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. resubmitSchema = { 'ACDCServer': self.ACDCCouchURL,
  2. 'ACDCDatabase': self.ACDCCouchDB,
  3. 'OriginalRequestName': requestName,
  4. 'InitialTaskPath': taskPath
  5. }
  6. maker = retrieveRequestMaker('Resubmission')
  7. specificSchema = maker.schemaClass()
  8. specificSchema.update(resubmitSchema)
  9. specificSchema.reqMgrURL = url
  10. try:
  11. specificSchema.validate()
  12. except Exception, ex:
  13. self.postError(ex.message, str(ex), 400)
  14.  
  15. request = maker(specificSchema)
  16.  
  17. ## we'll need to have specific exception handling
  18. try:
  19. CheckIn.checkIn(request)
  20. except Exception, ex:
  21. self.postError("Problem checking in the request", str(ex), 500)
Add Comment
Please, Sign In to add comment