Commit 28619674 authored by Ivan Tyagov's avatar Ivan Tyagov

We need to make gadgets visible to be shown in user area.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41266 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92ebdac3
...@@ -99,7 +99,11 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -99,7 +99,11 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
self.web_section_content_knowledge_pad = portal.restrictedTraverse( self.web_section_content_knowledge_pad = portal.restrictedTraverse(
self.web_section_content_knowledge_pad_relative_url) self.web_section_content_knowledge_pad_relative_url)
self.stepTic() self.stepTic()
# Publish all knowledge pad gadgets
for gadget in self.portal.portal_gadgets.objectValues():
if gadget.getValidationState() == 'invisible':
gadget.visible()
gadget.public()
def login(self, quiet=0, run=run_all_test): def login(self, quiet=0, run=run_all_test):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
......
1712 1713
\ No newline at end of file
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