Commit 28be37c0 authored by tearsyu's avatar tearsyu
Browse files

change auth way from mysql to simpler string match..

parent f807d787
......@@ -168,7 +168,7 @@ class LocalPool(ProductPool):
# msg = 'Load' + uri + 'failed. ' + str(e) + trbk(e)
# logger.error(msg)
# raise e
prod = self.transformpath(self._poolpath) + '/' + quote(resourcename) + '_' + indexstr
prod = self.transformpath(self._poolpath) + '/' + quote(typename) + '_' + indexstr
# uri = self.transformpath(self._poolurn) + '/' + quote(resourcename) + '_' + indexstr
try:
# p = getJsonObj(uri)
......@@ -179,7 +179,7 @@ class LocalPool(ProductPool):
msg = 'Load' + prod + 'failed. ' + str(e) + trbk(e)
logger.error(msg)
raise e
return deserializeClassID(js)
return p
def schematicRemove(self, typename, serialnum):
"""
......
......@@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
#from .productpool import ProductPool
DefaultPool = 'file:///tmp/pool_' + getpass.getuser()
DefaultPool = 'file:///pool_' + getpass.getuser()
class ProductStorage(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment