Commit 2d8410f1 authored by Ivan Tyagov's avatar Ivan Tyagov Committed by Thomas Gambier

erp5-show: support Zope 4 HTML content

Since switch to Zope 4 HTML content of default Zope root page changed. Thus adjust accordingly.
parent 4bfa26d7
...@@ -147,7 +147,9 @@ def status(): ...@@ -147,7 +147,9 @@ def status():
try: try:
r1 = urllib.request.urlopen(frontend, context=ctx) r1 = urllib.request.urlopen(frontend, context=ctx)
if b'Zope Management Interface' in r1.read(): r1_content = r1.read()
if b'Zope Management Interface' in r1_content or \
(b'Zope' in r1_content and b'Auto-generated default page' in r1_content):
connected = True connected = True
else: else:
print('URL %s ready, but does not reply with Zope' % frontend) print('URL %s ready, but does not reply with Zope' % frontend)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment