feat: barcode templates
This commit is contained in:
@@ -1,17 +1,8 @@
|
||||
from abc import abstractmethod, ABC
|
||||
|
||||
from models import Product
|
||||
from .article_attribute_getter import ArticleAttributeGetter
|
||||
from .client_name_attribute_getter import ClientNameAttributeGetter
|
||||
from .name_attribute_getter import NameAttributeGetter
|
||||
|
||||
|
||||
class BaseAttributeGetter(ABC):
|
||||
@abstractmethod
|
||||
def get_value(self, product: Product):
|
||||
pass
|
||||
|
||||
|
||||
class AttributeWriterFactory:
|
||||
@staticmethod
|
||||
def get_writer(key: str):
|
||||
@@ -22,3 +13,5 @@ class AttributeWriterFactory:
|
||||
return ArticleAttributeGetter()
|
||||
case 'client.name':
|
||||
return ClientNameAttributeGetter()
|
||||
case _:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user