Back to index

plone3  3.1.7
prefs_valid_search_restriction.py
Go to the documentation of this file.
00001 ## Script (Python) "prefs_valid_search_restriction.py"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=searchonly, specified=['users','groups']
00008 ##title=Valid Search Resriction
00009 ##
00010 # 'specified' must be a list
00011 return ((searchonly != None) and (searchonly in specified))