Commit 0612b700 authored by Jim Fulton's avatar Jim Fulton

Changed permission settings to be in line with new machinery.

parent ebfe4eb1
"""Folder object """Folder object
$Id: Folder.py,v 1.42 1998/04/14 20:46:07 jim Exp $""" $Id: Folder.py,v 1.43 1998/05/08 14:56:50 jim Exp $"""
__version__='$Revision: 1.42 $'[11:-2] __version__='$Revision: 1.43 $'[11:-2]
from Globals import HTMLFile from Globals import HTMLFile
...@@ -41,8 +41,6 @@ class Folder(ObjectManager,RoleManager,DocumentHandler, ...@@ -41,8 +41,6 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
The basic container object in Principia. Folders can hold almost all The basic container object in Principia. Folders can hold almost all
other Principia objects. other Principia objects.
""" """
__roles__=['Manager', 'Shared']
meta_type='Folder' meta_type='Folder'
id ='folder' id ='folder'
title ='Folder object' title ='Folder object'
...@@ -69,6 +67,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler, ...@@ -69,6 +67,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
) )
__ac_permissions__=( __ac_permissions__=(
('View', ()),
('View management screens', ('View management screens',
('manage','manage_menu','manage_main','manage_copyright', ('manage','manage_menu','manage_main','manage_copyright',
'manage_tabs','manage_propertiesForm','manage_UndoForm',)), 'manage_tabs','manage_propertiesForm','manage_UndoForm',)),
...@@ -82,9 +81,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler, ...@@ -82,9 +81,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
('Manage properties', ('Manage properties',
('manage_addProperty', 'manage_editProperties', ('manage_addProperty', 'manage_editProperties',
'manage_delProperties', 'manage_changeProperties',)), 'manage_delProperties', 'manage_changeProperties',)),
('Shared permission', ('',)),
) )
objectIds__roles__='Shared','Manager'
def tpValues(self): def tpValues(self):
r=[] r=[]
......
"""Image object""" """Image object"""
__version__='$Revision: 1.38 $'[11:-2] __version__='$Revision: 1.39 $'[11:-2]
import Globals import Globals
from Globals import HTMLFile, MessageDialog from Globals import HTMLFile, MessageDialog
...@@ -43,9 +43,8 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__): ...@@ -43,9 +43,8 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
__ac_permissions__=( __ac_permissions__=(
('View management screens', ['manage','manage_tabs','manage_uploadForm']), ('View management screens', ['manage','manage_tabs','manage_uploadForm']),
('Change permissions', ['manage_access']), ('Change permissions', ['manage_access']),
('Change/upload data', ['manage_edit','manage_upload','PUT']), ('Change', ['manage_edit','manage_upload','PUT']),
('View', ['index_html','view_image_or_file','getSize','getContentType']), ('View', ['index_html','view_image_or_file','getSize','getContentType']),
('Shared permission', ['',]),
) )
...@@ -135,7 +134,6 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__): ...@@ -135,7 +134,6 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
RESPONSE['content-type'] =self.content_type RESPONSE['content-type'] =self.content_type
return '' return ''
PUT__roles__=['Manager']
def PUT(self, BODY, REQUEST): def PUT(self, BODY, REQUEST):
'handle PUT requests' 'handle PUT requests'
self.data=Pdata(BODY) self.data=Pdata(BODY)
...@@ -189,8 +187,6 @@ class Image(File): ...@@ -189,8 +187,6 @@ class Image(File):
kind='image') kind='image')
manage=manage_main=manage_editForm manage=manage_main=manage_editForm
PUT__roles__=['Manager']
def __str__(self): def __str__(self):
return '<IMG SRC="%s" ALT="%s">' % (self.__name__, self.title_or_id()) return '<IMG SRC="%s" ALT="%s">' % (self.__name__, self.title_or_id())
......
...@@ -16,8 +16,8 @@ Aqueduct database adapters, etc. ...@@ -16,8 +16,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new This module can also be used as a simple template for implementing new
item types. item types.
$Id: SimpleItem.py,v 1.19 1998/05/01 14:41:59 jeffrey Exp $''' $Id: SimpleItem.py,v 1.20 1998/05/08 14:58:48 jim Exp $'''
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
import regex, sys, Globals, App.Management import regex, sys, Globals, App.Management
from DateTime import DateTime from DateTime import DateTime
...@@ -28,9 +28,8 @@ HTML=Globals.HTML ...@@ -28,9 +28,8 @@ HTML=Globals.HTML
class Item(CopySource, App.Management.Tabs): class Item(CopySource, App.Management.Tabs):
__roles__=['Manager', 'Shared']
isPrincipiaFolderish=0 isPrincipiaFolderish=0
isTopLevelPrincipiaApplicationObject=0
# Name, relative to SOFTWARE_URL of icon used to display item # Name, relative to SOFTWARE_URL of icon used to display item
# in folder listings. # in folder listings.
...@@ -204,6 +203,9 @@ def pretty_tb(t,v,tb): ...@@ -204,6 +203,9 @@ def pretty_tb(t,v,tb):
############################################################################## ##############################################################################
# #
# $Log: SimpleItem.py,v $ # $Log: SimpleItem.py,v $
# Revision 1.20 1998/05/08 14:58:48 jim
# Changed permission settings to be in line with new machinery.
#
# Revision 1.19 1998/05/01 14:41:59 jeffrey # Revision 1.19 1998/05/01 14:41:59 jeffrey
# added raise_standardErrorMessage logic # added raise_standardErrorMessage logic
# #
......
...@@ -79,7 +79,6 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit, ...@@ -79,7 +79,6 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
('Change permissions', ['manage_access']), ('Change permissions', ['manage_access']),
('Change', ['manage_edit',]), ('Change', ['manage_edit',]),
('View', ['__call__',]), ('View', ['__call__',]),
('Shared permission', ['',]),
) )
def __init__(self, id, title, module, function): def __init__(self, id, title, module, function):
...@@ -155,7 +154,6 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit, ...@@ -155,7 +154,6 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
return f return f
__call____roles__='Manager', 'Shared'
def __call__(self, *args, **kw): def __call__(self, *args, **kw):
"""Call an ExternalMethod """Call an ExternalMethod
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
__doc__='''Generic Database Connection Support __doc__='''Generic Database Connection Support
$Id: Connection.py,v 1.12 1998/04/29 18:31:45 jeffrey Exp $''' $Id: Connection.py,v 1.13 1998/05/08 15:00:08 jim Exp $'''
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition, sys import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition, sys
from DateTime import DateTime from DateTime import DateTime
...@@ -41,7 +41,6 @@ class Connection( ...@@ -41,7 +41,6 @@ class Connection(
('Change', ('manage_edit',) ), ('Change', ('manage_edit',) ),
('Open/Close', ('manage_open_connection', ('Open/Close', ('manage_open_connection',
'manage_close_connection')), 'manage_close_connection')),
('Shared permission', ['',]),
) )
# Define pre-defined types of access: # Define pre-defined types of access:
...@@ -146,6 +145,9 @@ class Connection( ...@@ -146,6 +145,9 @@ class Connection(
############################################################################## ##############################################################################
# #
# $Log: Connection.py,v $ # $Log: Connection.py,v $
# Revision 1.13 1998/05/08 15:00:08 jim
# Changed permission settings to be in line with new machinery.
#
# Revision 1.12 1998/04/29 18:31:45 jeffrey # Revision 1.12 1998/04/29 18:31:45 jeffrey
# *** empty log message *** # *** empty log message ***
# #
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.45 1998/04/29 21:17:51 jim Exp $''' $Id: DA.py,v 1.46 1998/05/08 15:00:27 jim Exp $'''
__version__='$Revision: 1.45 $'[11:-2] __version__='$Revision: 1.46 $'[11:-2]
import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB
import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os
...@@ -69,7 +69,6 @@ class DA( ...@@ -69,7 +69,6 @@ class DA(
('Change', ('manage_edit','manage_advanced') ), ('Change', ('manage_edit','manage_advanced') ),
('Test', ('manage_testForm','manage_test') ), ('Test', ('manage_testForm','manage_test') ),
('Use', ('__call__',)), ('Use', ('__call__',)),
('Shared permission', ['',]),
) )
# Define pre-defined types of access: # Define pre-defined types of access:
...@@ -435,6 +434,9 @@ def getBrain(self, ...@@ -435,6 +434,9 @@ def getBrain(self,
############################################################################## ##############################################################################
# #
# $Log: DA.py,v $ # $Log: DA.py,v $
# Revision 1.46 1998/05/08 15:00:27 jim
# Changed permission settings to be in line with new machinery.
#
# Revision 1.45 1998/04/29 21:17:51 jim # Revision 1.45 1998/04/29 21:17:51 jim
# Changed to use acquired parent. # Changed to use acquired parent.
# #
......
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