R
R
Roman Volodin2018-03-12 11:51:06
Python
Roman Volodin, 2018-03-12 11:51:06

How to override formatting?

Guys, suppose this situation: the client sends a list, say, of products that need to be laid out in HTML. Add pictures, fonts, colors and more. We've done everything.
The client sends a new version of the list - the first item became the fourth, the first one was replaced by a new product. The third was deleted, the second was corrected by a typo. We need to redo the layout. While the list is small, you can do it by hand, but when there are hundreds of items, hell and pain begin.
And here the question is - are there ways to automate this process?
I understand that the difference between the lists can be looked at as a diff. Already good, no need to compare manually. Is it possible to somehow apply layout to already known list items? So that only new items remain without registration. Nothing but self-written scripts comes to mind.
I can not formulate a query to the search engine. I will be glad to any info, advice, ideas.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-03-12
@cronk

Since it is in Python tags, and the data for layout is sent in Excel, then your way to happiness is to master and use xlrd + Jinja2 .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question