def get_private_key(): ''' load local instance private key and return rsa instance ''' try: return RSA.load_key(PRIV_KEY_PATH) except Exception, ex: logger.error('unable to load private key %s' % PRIV_KEY_PATH) logger.debug(ex) return None
def handleEdit(self, confInfo): logger.debug("handleEdit is called. -- action = %s, id = %s" % (self.customAction, self.callerArgs.id)) try: args = self.getCallerArgs() self.update(**args) self.handleList(confInfo) except BaseException as ex: logger.exception("handleEdit Failed - arguments = %s, exception = %s" % (self.callerArgs, ex))
def handleEdit(self, confInfo): logger.debug('handleEdit is called. -- action = %s, id = %s' % (self.customAction, self.callerArgs.id)) try: args = self.getCallerArgs() self.update(**args) self.handleList(confInfo) except BaseException as ex: logger.exception( 'handleEdit Failed - arguments = %s, exception = %s' % (self.callerArgs, ex))