configurationengine/source/cone/confml/implml.py
changeset 0 2e8eeb919028
equal deleted inserted replaced
-1:000000000000 0:2e8eeb919028
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 import sys
       
    18 import os
       
    19 
       
    20 from cone.public import plugin, utils, exceptions
       
    21 
       
    22 debug = 0
       
    23 
       
    24 class Implml(plugin.ImplBase):
       
    25     """
       
    26     Base class for any  implementation plugin. 
       
    27     """
       
    28     def __init__(self,ref,configuration,output='output'):
       
    29         plugin.ImplBase.__init__(self,ref,configuration)
       
    30         self.set_output_root(output)
       
    31         pass
       
    32 
       
    33     def list_output_files(self):
       
    34         return utils.list_files(self.output)
       
    35 
       
    36 
       
    37     def has_ref(self, refs):
       
    38         """
       
    39         Return True if the implementation uses the given ref as input value. Otherwise return False.
       
    40         """
       
    41         raise exceptions.NotSupportedException()