Commit 2b1cb76d authored by Aurel's avatar Aurel

do not prevent instance from starting if slapos libs are not installed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41651 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c52fe07
......@@ -38,10 +38,27 @@ from Products.ERP5Type.Globals import InitializeClass
from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions
from lxml import etree
from slapos.slap.slap import Computer
from slapos.slap.slap import ComputerPartition as SlapComputerPartition
from slapos.slap.slap import SoftwareInstance
from slapos.slap.slap import SoftwareRelease
try:
from slapos.slap.slap import Computer
from slapos.slap.slap import ComputerPartition as SlapComputerPartition
from slapos.slap.slap import SoftwareInstance
from slapos.slap.slap import SoftwareRelease
except ImportError:
# Do no prevent instance from starting
# if libs are not installed
class Computer:
def __init__(self):
raise ImportError
class SlapComputerPartition:
def __init__(self):
raise ImportError
class SoftwareInstance:
def __init__(self):
raise ImportError
class SoftwareRelease:
def __init__(self):
raise ImportError
from zLOG import LOG, INFO
import xml_marshaller
......
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