X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fcomponent.py;h=3958c5fb9676ac5cad31729cf76f0ba3a2fce68a;hb=d42c0e79549cbc940fd160f4e9cb1f75e59029ce;hp=c83ac4af3f126b12e8a7da5ce53ca741c68bd6e4;hpb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;p=sfa.git diff --git a/sfa/server/component.py b/sfa/server/component.py index c83ac4af..3958c5fb 100644 --- a/sfa/server/component.py +++ b/sfa/server/component.py @@ -1,16 +1,12 @@ # # Component is a SfaServer that implements the Component interface # -### $Id: -### $URL: -# - import tempfile import os import time import sys -from sfa.util.componentserver import ComponentServer +from sfa.server.sfaserver import SfaServer # GeniLight client support is optional try: @@ -21,7 +17,8 @@ except ImportError: ## # Component is a SfaServer that serves component operations. -class Component(ComponentServer): +# set SFA_GENERIC_FLAVOUR=plcm to get a PlcComponentApi instance in the request handler +class Component(SfaServer): ## # Create a new registry object. # @@ -31,5 +28,5 @@ class Component(ComponentServer): # @param cert_file certificate filename containing public key (could be a GID file) def __init__(self, ip, port, key_file, cert_file): - ComponentServer.__init__(self, ip, port, key_file, cert_file) + SfaServer.__init__(self, ip, port, key_file, cert_file) self.server.interface = 'component'