Commit 0739ebce authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Allow ERP5 mantainers extend attention point with custom script

   A general warning can be issued to warn all users regardless the context. This is usefull for general mantainence or custom messages, while it is urgent inform users right the way.
parent 254ac58e
......@@ -58,4 +58,7 @@ if portal_type in ["Hosting Subscription Module", "Hosting Subscription", "Perso
"Your Contract is Deactivated")
attention_point_list.append({"text": msg, 'page': "slap_request_contract_activation"})
if getattr(context, "Base_getCriticalAttentionPointList", None):
attention_point_list.extend(context.Base_getCriticalAttentionPointList())
return dumps(attention_point_list)
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