Skip to content

Commit e689306

Browse files
committed
add missing zpublish decorations
1 parent 48ffd15 commit e689306

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/App/ProductContext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class __FactoryDispatcher__(FactoryDispatcher):
194194
'container_filter': container_filter
195195
},)
196196

197-
m[name] = initial
197+
m[name] = zpublish_wrap(initial)
198198
m[name + '__roles__'] = pr
199199

200200
for method in constructors[1:]:

src/Shared/DC/Scripts/BindingsUI.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from AccessControl.SecurityInfo import ClassSecurityInfo
1717
from App.special_dtml import DTMLFile
1818
from Shared.DC.Scripts.Bindings import Bindings
19+
from ZPublisher import zpublish
1920

2021

2122
class BindingsUI(Bindings):
@@ -30,6 +31,7 @@ class BindingsUI(Bindings):
3031
'ZBindingsHTML_editForm')
3132
ZBindingsHTML_editForm = DTMLFile('dtml/scriptBindings', globals())
3233

34+
@zpublish
3335
@security.protected('Change bindings')
3436
def ZBindingsHTML_editAction(self, REQUEST):
3537
'''Changes binding names.

0 commit comments

Comments
 (0)