def deleteProductCategory(id=0, productId=0, categoryId=0): result = False try: tmp = db.procedure("deleteProductCategory", [id, productId, categoryId]) result = tmp[0]["rows"] > 0 except: pass return result
def update(category): result = False try: tmp = db.procedure("updateCategory", category.toArray()) result = tmp[0]["rows"] > 0 except: pass return result
def delete(categoryId): result = False try: tmp = db.procedure("deleteCategory", [categoryId]) result = tmp[0]["rows"] > 0 except: pass return result
def addProductCategory(productId, categoryId): result = False try: tmp = db.procedure("addProductCategory", [productId, categoryId]) result = tmp[0]["rows"] except: pass return result
def add(name, description): result = False try: tmp = db.procedure("addCategory", [name, description]) result = tmp[0]["rows"] except: pass return result
def delete(charactId): result = False try: tmp = db.procedure("deleteCharacteristic", [charactId]) result = tmp[0]["rows"] > 0 except: pass return result
def update(characterictics): result = False try: tmp = db.procedure("updateCharacteristic", characterictics.toArray()) result = tmp[0]["rows"] > 0 except: pass return result
def add(name, content): result = False try: tmp = db.procedure("addCharacteristic", [name, content]) result = tmp[0]["rows"] except: pass return result
def addCharacteristicProduct(productId, charactId): result = False try: tmp = db.procedure("addCharacteristicProduct", [charactId, productId]) result = tmp[0]["rows"] except: pass return result
def deleteProductCharacteristic(id=0, productId=0, charactId=0): result = False try: tmp = db.procedure("deleteProductCharacteristic", [id, productId, charactId]) result = tmp[0]["rows"] > 0 except: pass return result