Exemplo n.º 1
0
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
Exemplo n.º 2
0
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 
Exemplo n.º 3
0
    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))
Exemplo n.º 4
0
    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))