[CMF-checkins] CVS: CMF/CMFCore - SkinsTool.py:1.24
Yvo Schubbe
schubbe@web.de
Mon, 10 Mar 2003 05:00:27 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14794/CMFCore
Modified Files:
SkinsTool.py
Log Message:
Cleanup:
- Imported View permission.
- Removed useless imports.
=== CMF/CMFCore/SkinsTool.py 1.23 => 1.24 ===
--- CMF/CMFCore/SkinsTool.py:1.23 Thu Feb 13 02:44:48 2003
+++ CMF/CMFCore/SkinsTool.py Mon Mar 10 05:00:26 2003
@@ -15,6 +15,8 @@
$Id$
"""
+from types import ListType
+
from utils import UniqueObject, getToolByName, _dtmldir
from Globals import DTMLFile
from Globals import InitializeClass
@@ -23,11 +25,11 @@
from Acquisition import aq_base
from DateTime import DateTime
from AccessControl import ClassSecurityInfo
-from CMFCorePermissions import ManagePortal
+
from CMFCorePermissions import AccessContentsInformation
+from CMFCorePermissions import ManagePortal
+from CMFCorePermissions import View
from ActionProviderBase import ActionProviderBase
-from ActionInformation import ActionInformation
-from Expression import Expression
from OFS.Folder import Folder
from OFS.Image import Image
@@ -35,8 +37,6 @@
from OFS.ObjectManager import REPLACEABLE
from Products.PythonScripts.PythonScript import PythonScript
-from types import StringType, ListType
-
try:
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
SUPPORTS_PAGE_TEMPLATES=1
@@ -258,7 +258,7 @@
rval.sort()
return rval
- security.declareProtected('View', 'updateSkinCookie')
+ security.declareProtected(View, 'updateSkinCookie')
def updateSkinCookie(self):
'''
If needed, updates the skin cookie based on the member preference.
@@ -289,7 +289,7 @@
return 1
return 0
- security.declareProtected( 'View', 'clearSkinCookie' )
+ security.declareProtected(View, 'clearSkinCookie')
def clearSkinCookie(self):
req = self.REQUEST
resp = req.RESPONSE