[CMF-checkins] CVS: CMF/CMFDefault/skins/control - isDiscussable.py:1.1

Andrew Sawyers andrew@zope.com
Tue, 4 Dec 2001 14:04:21 -0500


Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory cvs.zope.org:/tmp/cvs-serv31970/CMFDefault/skins/control

Added Files:
	isDiscussable.py 
Log Message:

*Tracker #169
*GUI knobs added to metadata edit form skins
*method added to DiscussionTool to override discussability for a
piece of content.
*removed simple_metadata.pt, old kruft.
*added python script isDiscussable to return the objects
allow_discussion or None


=== Added File CMF/CMFDefault/skins/control/isDiscussable.py ===
## Script (Python) "isDiscussable"
##title=Return whether the context is discussable or not.
##parameters=
if hasattr(context, 'allow_discussion'):
    return context.allow_discussion
else:
    return None