Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resubmitSchema = { 'ACDCServer': self.ACDCCouchURL,
- 'ACDCDatabase': self.ACDCCouchDB,
- 'OriginalRequestName': requestName,
- 'InitialTaskPath': taskPath
- }
- maker = retrieveRequestMaker('Resubmission')
- specificSchema = maker.schemaClass()
- specificSchema.update(resubmitSchema)
- specificSchema.reqMgrURL = url
- try:
- specificSchema.validate()
- except Exception, ex:
- self.postError(ex.message, str(ex), 400)
- request = maker(specificSchema)
- ## we'll need to have specific exception handling
- try:
- CheckIn.checkIn(request)
- except Exception, ex:
- self.postError("Problem checking in the request", str(ex), 500)
Add Comment
Please, Sign In to add comment