- Introduced a new product details layout in `product_details_page.xml` with styled elements and hidden original Odoo components for a premium look. - Enhanced the product form view in `product_views.xml` to include a new field for marking popular deals. - Updated the configuration settings view in `res_config_settings_views.xml` to add a delivery option toggle during checkout. - Reorganized the shop page layout in `shop_page.xml` to include dynamic categories and attributes, along with a new arrivals section. - Created a new snippets file `snippets.xml` for potential future custom drag-and-drop blocks. - Added a script in `parse_content.py` for parsing specific content from a markdown file.
14 lines
509 B
Python
14 lines
509 B
Python
with open(r"C:\Users\LENOVO\.gemini\antigravity\brain\ce256ea1-56f2-43c9-bbf4-7f33e9a804a9\.system_generated\steps\564\content.md", "r", encoding="utf-8") as f:
|
|
text = f.read()
|
|
|
|
import re
|
|
|
|
# Let's search for "Welcome to" or "Shiva Sakthi Restaurant"
|
|
matches = [m.start() for m in re.finditer("Welcome to", text, re.IGNORECASE)]
|
|
for idx, pos in enumerate(matches):
|
|
start = max(0, pos - 200)
|
|
end = min(len(text), pos + 1000)
|
|
print(f"MATCH {idx}:")
|
|
print(text[start:end])
|
|
print("-" * 50)
|