blob: bdff3927474d327ebf21a80866b583fa0387f177 [file] [log] [blame]
#!/usr/bin/env python
import logging
import os
_log = logging.getLogger(__name__)
class GenericFactory(object):
products = None
@classmethod
def create(cls, description):
return cls.products[description]()
@classmethod
def add(cls, description, product):
cls.products[description] = product