Ignore:
Timestamp:
Feb 17, 2017, 2:22:57 PM (3 years ago)
Author:
Juanma
Message:

WIP on blacklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py

    r3656 r3661  
    66import pkgutil
    77import lliurexstore.plugins as plugins
     8import json
    89######
    910#Ver. 1.0 of storeManager.py
     
    310311        def get_status(self,action=None):
    311312                self.lock.acquire()
     313
    312314                result={}
    313315                if action in self.result:
    314316                        result=self.result[action]['status']
     317                        errorFile=open('/usr/share/lliurex-store/files/error.json').read()
     318                        errorCodes=json.loads(errorFile)
     319                        result['msg']=errorCodes[str(result['status'])]
    315320                self.lock.release()
    316321                return(result)
Note: See TracChangeset for help on using the changeset viewer.