P5-3538 do not create eSales importfile after saving a category
This commit is contained in:
@@ -27,24 +27,3 @@ def update_designer(designer):
|
||||
|
||||
directory = current_app.config.get("ESALES_IMPORT_DIR")
|
||||
importfile.write(directory)
|
||||
|
||||
|
||||
def update_category(category):
|
||||
importfile = ImportFile()
|
||||
for text in category.texts:
|
||||
locale = text.locale
|
||||
tree = CategoryTree("categories_{}".format(locale.value))
|
||||
tree.add_category(Category(
|
||||
key='root/{}'.format(category.path(locale.value)),
|
||||
display_name=category.name,
|
||||
wallpaper_description=text.wallpaper_description,
|
||||
wallpaper_h1=text.wallpaper_h1,
|
||||
canvas_description=text.canvas_description,
|
||||
canvas_h1=text.canvas_h1,
|
||||
design_wallpaper_description=text.design_wallpaper_description,
|
||||
design_wallpaper_h1=text.design_wallpaper_h1
|
||||
))
|
||||
importfile.add_operation("update", tree)
|
||||
|
||||
directory = current_app.config.get("ESALES_IMPORT_DIR")
|
||||
importfile.write(directory)
|
||||
|
||||
Reference in New Issue
Block a user