10 lines
211 B
Python
10 lines
211 B
Python
|
|
v = env.ref('website.layout')
|
|
arch = v.arch_db
|
|
start = arch.find('<header')
|
|
if start != -1:
|
|
end = arch.find('</header>') + 9
|
|
print(arch[start:end])
|
|
else:
|
|
print("Header not found in website.layout")
|