Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0612b700
Commit
0612b700
authored
May 08, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed permission settings to be in line with new machinery.
parent
ebfe4eb1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
37 deletions
+34
-37
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+16
-19
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+2
-6
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+6
-4
lib/python/Products/ExternalMethod/ExternalMethod.py
lib/python/Products/ExternalMethod/ExternalMethod.py
+0
-2
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+5
-3
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+5
-3
No files found.
lib/python/OFS/Folder.py
View file @
0612b700
"""Folder object
$Id: Folder.py,v 1.4
2 1998/04/14 20:46:07
jim Exp $"""
$Id: Folder.py,v 1.4
3 1998/05/08 14:56:50
jim Exp $"""
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
3
$'
[
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_transaction
s'
,)),
(
'Change permissions'
,
(
'manage_acces
s'
,)),
(
'Add objects'
,
(
'manage_addObject
'
,)),
(
'Delete objects'
,
(
'manage_delObjects
'
,)),
(
'Manage properties'
,
(
'manage_addProperty'
,
'manage_editP
roperties'
,
'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'
,
'propertyItem
s'
,)),
(
'Undo changes'
,
(
'manage_undo_transaction
s'
,)),
(
'Change permissions'
,
(
'manage_access
'
,)),
(
'Add objects'
,
(
'manage_addObject
'
,)),
(
'Delete objects'
,
(
'manage_delObjects'
,))
,
(
'Manage p
roperties'
,
(
'manage_addProperty'
,
'manage_editProperties'
,
'manage_delProperties'
,
'manage_changeProperties
'
,)),
)
objectIds__roles__
=
'Shared'
,
'Manager'
def
tpValues
(
self
):
r
=
[]
...
...
lib/python/OFS/Image.py
View file @
0612b700
"""Image object"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
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
())
...
...
lib/python/OFS/SimpleItem.py
View file @
0612b700
...
...
@@ -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
#
...
...
lib/python/Products/ExternalMethod/ExternalMethod.py
View file @
0612b700
...
...
@@ -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
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
0612b700
...
...
@@ -10,8 +10,8 @@
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.1
2 1998/04/29 18:31:45 jeffrey
Exp $'''
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.1
3 1998/05/08 15:00:08 jim
Exp $'''
__version__
=
'$Revision: 1.1
3
$'
[
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 ***
#
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
0612b700
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.4
5 1998/04/29 21:17:51
jim Exp $'''
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
$Id: DA.py,v 1.4
6 1998/05/08 15:00:27
jim Exp $'''
__version__
=
'$Revision: 1.4
6
$'
[
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.
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment