[CMF-checkins] CVS: CMF - Document.py:1.13 Favorite.py:1.7 File.py:1.11 Image.py:1.8 Link.py:1.5 NewsItem.py:1.7
tseaver@digicool.com
tseaver@digicool.com
Thu, 24 May 2001 16:39:41 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv18029/CMFDefault
Modified Files:
Document.py Favorite.py File.py Image.py Link.py NewsItem.py
Log Message:
- Use named permissions instead of strings in all
'factory_type_information' records.
--- Updated File Document.py in package CMF --
--- Document.py 2001/05/24 20:19:00 1.12
+++ Document.py 2001/05/24 20:39:40 1.13
@@ -109,15 +109,18 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'document_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'document_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}
--- Updated File Favorite.py in package CMF --
--- Favorite.py 2001/05/24 20:19:00 1.6
+++ Favorite.py 2001/05/24 20:39:40 1.7
@@ -94,6 +94,7 @@
from DublinCore import DefaultDublinCoreImpl
from Link import Link
+from Products.CMFCore import CMFCorePermissions
from Products.CMFCore.WorkflowCore import afterCreate
factory_type_information = ( { 'id' : 'Favorite'
@@ -107,15 +108,18 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'favorite_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'link_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}
--- Updated File File.py in package CMF --
--- File.py 2001/05/24 20:19:00 1.10
+++ File.py 2001/05/24 20:39:40 1.11
@@ -113,19 +113,23 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'file_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Download'
, 'action' : ''
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'file_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}
--- Updated File Image.py in package CMF --
--- Image.py 2001/05/24 20:19:00 1.7
+++ Image.py 2001/05/24 20:39:40 1.8
@@ -111,15 +111,18 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'image_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'image_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}
--- Updated File Link.py in package CMF --
--- Link.py 2001/05/24 20:19:00 1.4
+++ Link.py 2001/05/24 20:39:40 1.5
@@ -107,15 +107,18 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'link_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'link_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}
--- Updated File NewsItem.py in package CMF --
--- NewsItem.py 2001/05/24 20:19:00 1.6
+++ NewsItem.py 2001/05/24 20:39:40 1.7
@@ -109,15 +109,18 @@
, 'actions' :
( { 'name' : 'View'
, 'action' : 'newsitem_view'
- , 'permissions' : ('View',)
+ , 'permissions' : (
+ CMFCorePermissions.View, )
}
, { 'name' : 'Edit'
, 'action' : 'newsitem_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
, { 'name' : 'Metadata'
, 'action' : 'metadata_edit_form'
- , 'permissions' : ('Modify portal content',)
+ , 'permissions' : (
+ CMFCorePermissions.ModifyPortalContent, )
}
)
}