Commit 0b458c2 1 parent 3874f56 commit 0b458c2 Copy full SHA for 0b458c2
File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -989,13 +989,17 @@ def getEmailBodySamplePublication(self):
989
989
"""Get the value from the senaite setup
990
990
"""
991
991
setup = api .get_senaite_setup ()
992
- return setup .getEmailBodySamplePublication ()
992
+ # setup is `None` during initial site content structure installation
993
+ if setup :
994
+ return setup .getEmailBodySamplePublication ()
993
995
994
996
def setEmailBodySamplePublication (self , value ):
995
997
"""Set the value in the senaite setup
996
998
"""
997
999
setup = api .get_senaite_setup ()
998
- setup .setEmailBodySamplePublication (value )
1000
+ # setup is `None` during initial site content structure installation
1001
+ if setup :
1002
+ setup .setEmailBodySamplePublication (value )
999
1003
1000
1004
1001
1005
registerType (BikaSetup , PROJECTNAME )
Original file line number Diff line number Diff line change @@ -172,9 +172,6 @@ def install(context):
172
172
logger .info ("SENAITE CORE install handler [BEGIN]" )
173
173
portal = context .getSite ()
174
174
175
- # Used in bika_setup, therefore it has to be added here
176
- add_senaite_setup (portal )
177
-
178
175
# Run required import steps
179
176
_run_import_step (portal , "skins" )
180
177
_run_import_step (portal , "browserlayer" )
@@ -200,6 +197,7 @@ def install(context):
200
197
setup_catalog_mappings (portal )
201
198
setup_auditlog_catalog_mappings (portal )
202
199
setup_content_structure (portal )
200
+ add_senaite_setup (portal )
203
201
add_dexterity_portal_items (portal )
204
202
add_dexterity_setup_items (portal )
205
203
You can’t perform that action at this time.
0 commit comments