[Checkins] SVN: Products.CMFCore/trunk/Products/CMFCore/utils.py - utils: Add a new optional argument to ContentInit that allows hiding
Jens Vagelpohl
jens at dataflake.org
Sat Sep 13 06:27:28 EDT 2008
Log message for revision 91114:
- utils: Add a new optional argument to ContentInit that allows hiding
a content item's ZMI add list entry. The default is to leave the item
visible, which reflects the previous behavior.
Changed:
U Products.CMFCore/trunk/Products/CMFCore/utils.py
-=-
Modified: Products.CMFCore/trunk/Products/CMFCore/utils.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/utils.py 2008-09-13 09:00:28 UTC (rev 91113)
+++ Products.CMFCore/trunk/Products/CMFCore/utils.py 2008-09-13 10:27:27 UTC (rev 91114)
@@ -634,12 +634,14 @@
, permission=None
, extra_constructors=()
, fti=()
+ , visibility='Global'
):
# BBB: fti argument is ignored
self.meta_type = meta_type
self.content_types = content_types
self.permission = permission
self.extra_constructors = extra_constructors
+ self.visibility = visibility
def initialize(self, context):
# Add only one meta type to the folder add list.
@@ -652,6 +654,7 @@
, manage_addContent
, self ) + self.extra_constructors
, permission = self.permission
+ , visibility = self.visibility
)
for ct in self.content_types:
More information about the Checkins
mailing list