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

Changed permission settings to be in line with new machinery.

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