Commit 9cc11230 authored by Jim Fulton's avatar Jim Fulton

Added permission settings to be inherited. Also has to

convert to extension classes to make permission machinery
work properly.  This needs some more thought.
parent 44a1b683
......@@ -83,9 +83,9 @@
#
##############################################################################
__doc__="""Copy interface"""
__version__='$Revision: 1.27 $'[11:-2]
__version__='$Revision: 1.28 $'[11:-2]
import sys, string, Globals, Moniker, tempfile
import sys, string, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps
from urllib import quote, unquote
from zlib import compress, decompress
......@@ -94,9 +94,16 @@ from App.Dialogs import MessageDialog
CopyError='Copy Error'
class CopyContainer:
class CopyContainer(ExtensionClass.Base):
"""Interface for containerish objects which allow cut/copy/paste"""
__ac_permissions__=(
('View management screens',
('manage_cutObjects', 'manage_copyObjects', 'manage_pasteObjects',
'manage_renameForm', 'manage_renameObject',)),
)
def manage_cutObjects(self, ids, REQUEST=None):
"""Put a reference to the objects named in ids in the clip board"""
if type(ids) is type(''):
......
......@@ -84,9 +84,9 @@
##############################################################################
"""Property management"""
__version__='$Revision: 1.12 $'[11:-2]
__version__='$Revision: 1.13 $'[11:-2]
import ExtensionClass
from ZPublisher.Converters import type_converters
from Globals import HTMLFile, MessageDialog
from string import find,join,lower,split
......@@ -97,7 +97,7 @@ from DateTime import DateTime
from PropertySheets import vps
class PropertyManager:
class PropertyManager(ExtensionClass.Base):
"""
The PropertyManager mixin class provides an object with
transparent property management. An object which wants to
......@@ -160,6 +160,18 @@ class PropertyManager:
_properties=({'id':'title', 'type': 'string', 'mode':'w'},)
_reserved_names=()
__ac_permissions__=(
('Manage properties', ('manage_addProperty',
'manage_editProperties',
'manage_delProperties',
'manage_changeProperties',
)),
('Access contents information',
('hasProperty', 'propertyIds', 'propertyValues','propertyItems',''),
('Anonymous', 'Manager'),
),
)
__propsets__=()
propertysheets=vps()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment