Skip to content

Commit c44028b

Browse files
committed
Added cputils section to call standard-config
1 parent 0377869 commit c44028b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Diff for: Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ various-script: ## Runs `run-scripts.py` 4 plone script that does various thing
7979
@echo "plone: $(plone)"
8080
bin/$(instance) -O$(plone) run run-scripts.py 4
8181

82+
.PHONY: cputils
83+
cputils: ## run cputils_install
84+
@echo "plone: $(plone)"
85+
bin/$(instance) -O$(plone) run standard-config.py
86+
8287
.PHONY: contact-import
8388
contact-import: ## Runs contact import `pipeline-run.cfg`
8489
@echo "plone: $(plone)"

Diff for: standard-config.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
from Products.ExternalMethod.ExternalMethod import manage_addExternalMethod
2+
import transaction
3+
zapp = app # noqa
24
# we add the external method cputils_install
3-
if not hasattr(app, 'cputils_install'):
4-
manage_addExternalMethod(app, 'cputils_install', '', 'CPUtils.utils', 'install')
5+
if not hasattr(zapp, 'cputils_install'):
6+
manage_addExternalMethod(zapp, 'cputils_install', '', 'CPUtils.utils', 'install')
57
# we run this method
6-
app.cputils_install(app)
8+
zapp.cputils_install(zapp)
9+
transaction.commit()
710
# we add the properties hiddenProducts, shownProducts
8-
#from Products.CPUtils.hiddenProductsList import dic_hpList
9-
# to be continued
11+
# from Products.CPUtils.hiddenProductsList import dic_hpList
12+
# to be continued

0 commit comments

Comments
 (0)