Back to index

plone3  3.1.7
hide_columns.py
Go to the documentation of this file.
00001 ## Script (Python) "hide_columns"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=sl,sr
00008 ##title=
00009 ##
00010 context.plone_log("The hide_columns script is deprecated and will be "
00011                   "removed in Plone 4.0. You should not be using this.")
00012 
00013 column_left=sl
00014 column_right=sr
00015 
00016 if column_right==[] and column_left==[]:
00017     return "visualColumnHideOneTwo"
00018 if column_right!=[]and column_left==[]:
00019     return "visualColumnHideOne"
00020 if column_right==[]and column_left!=[]:
00021     return "visualColumnHideTwo"
00022 return "visualColumnHideNone"