(self, template, parameters=None)
TODO: Docstring for build_image_from_template

        @param template TODO 

        @return TODO
TODO: Docstring for build_image_from_template
TODO : Docstring for build_image_from_template
def build_image_from_template(self, template, parameters=None):
        """
        TODO: Docstring for build_image_from_template

        @param template TODO 

        @return TODO
        """
        # Create what is essentially an empty BaseImage here
        self.base_image = BaseImage()
        self.base_image.template = template
        if parameters:
            self.base_image.parameters = parameters
        self.pim.add_image(self.base_image)
        if parameters and ('callbacks' in parameters):
            # This ensures we have workers in place before any potential state changes
            self._init_callback_workers(self.base_image, parameters['callbacks'], self._base_image_cbws)

        thread_name = str(uuid.uuid4())[0:8]
        thread_kwargs = {'template':template, 'parameters':parameters}
        self.base_thread = Thread(target=self._build_image_from_template, name=thread_name, args=(), kwargs=thread_kwargs)
        self.base_thread.start()
def build_image_from_template ( self , template , parameters = None ) : # Create what is essentially an empty BaseImage here self . base_image = BaseImage ( ) self . base_image . template = template if parameters : self . base_image . parameters = parameters self . pim . add_image ( self . base_image ) if parameters and ( 'callbacks' in parameters ) : # This ensures we have workers in place before any potential state changes self . _init_callback_workers ( self . base_image , parameters [ 'callbacks' ] , self . _base_image_cbws ) thread_name = str ( uuid . uuid4 ( ) ) [ 0 : 8 ] thread_kwargs = { 'template' : template , 'parameters' : parameters } self . base_thread = Thread ( target = self . _build_image_from_template , name = thread_name , args = ( ) , kwargs = thread_kwargs ) self . base_thread . start ( )