NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
ObjTextFHDescription is a Python module responsible for generating a consolidated product description by aggregating individual feature fields from a database. It reads up to 15 feature fields, concatenates them into a single pipe-separated string, and updates the product's description field in the database.
trader.meta_product table.__init__(self, db_connection: DatabaseConnection = 0, page=0)Initializes the ObjTextFHDescription object.
DatabaseConnection object for database operations.read_features(self, param_1)Reads the feature fields for a given product code, generates the consolidated description, and updates the database.
Process(self, param_1="", ...)The main processing method that orchestrates the reading of features and updating the description.
To generate and update the description for a product, use the Process method:
import ObjTextFHDescription
# Initialize the object with a database connection
description_processor = ObjTextFHDescription.ObjProcessText(db_connection=db)
# Process a product with a specific code
product_code = "19436"
description_processor.Process(product_code)