source: products/qPloneTabs/tags/0.2.1/skins/qPloneTabs/qpt_setproperty.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 505 bytes
Line 
1## Script (Python) "qpt_setproperty"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters= generated_tabs=False
8##title=
9##
10
11from Products.CMFCore.utils import getToolByName
12changeProperties = getToolByName(context, 'portal_properties').site_properties.manage_changeProperties
13if generated_tabs == 'true':
14  changeProperties(disable_folder_sections=False)
15else:
16  changeProperties(disable_folder_sections=True)
17return True
18
Note: See TracBrowser for help on using the repository browser.