Skip to content

Commit

Permalink
Added cron settings info
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Nov 30, 2024
1 parent e45e008 commit fbf7d10
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/imio/updates/inst_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from plone import api
from Products.CMFPlone.utils import base_hasattr
from Products.CPUtils.Extensions.utils import tobytes
from Products.cron4plone.browser.configlets.cron_configuration import ICronConfiguration
from zope.component import queryUtility

import json
import os
Expand Down Expand Up @@ -129,6 +131,12 @@ def check_wsclient():
# get assigned_user option
infos['checks']['assigned_user'] = api.portal.get_registry_record('imio.dms.mail.browser.settings.'
'IImioDmsMailConfig.assigned_user_check')
# get cron4plone settings
cron_configlet = queryUtility(ICronConfiguration, "cron4plone_config")
if not cron_configlet.cronjobs:
infos['checks']['cron'] = 0
else:
infos['checks']['cron'] = 1
# get wsclient option
infos['checks']['pm'] = check_wsclient()
# get query next prev max result value
Expand Down

0 comments on commit fbf7d10

Please sign in to comment.