[CMF-checkins] CVS: CMF/CMFCore - ActionProviderBase.py:1.12
Tres Seaver
tseaver@zope.com
Sat, 6 Jul 2002 13:02:41 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv15937/CMFCore
Modified Files:
ActionProviderBase.py
Log Message:
- Make ZMI setting of visibility work correctly.
=== CMF/CMFCore/ActionProviderBase.py 1.11 => 1.12 ===
if type( visible ) is not type( 0 ):
- visible = 0
+ try:
+ visible = int( visible )
+ except:
+ visible = 0
if type( permissions ) is type( '' ):
permissions = ( permissions, )