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
"""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
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,22 +67,21 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
...
@@ -69,22 +67,21 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
)
)
__ac_permissions__
=
(
__ac_permissions__
=
(
(
'View management screens'
,
(
'View'
,
())
,
(
'manage'
,
'manage_menu'
,
'manage_main'
,
'manage_copyright
'
,
(
'View management screens
'
,
'manage_tabs'
,
'manage_propertiesForm'
,
'manage_UndoForm'
,))
,
(
'manage'
,
'manage_menu'
,
'manage_main'
,
'manage_copyright'
,
(
'Access Contents Information'
,
'manage_tabs'
,
'manage_propertiesForm'
,
'manage_UndoForm'
,))
,
(
'objectIds'
,
'objectValues'
,
'objectItems'
,
'hasProperty
'
,
(
'Access Contents Information
'
,
'propertyIds'
,
'propertyValues'
,
'propertyItems'
,))
,
(
'objectIds'
,
'objectValues'
,
'objectItems'
,
'hasProperty'
,
(
'Undo changes'
,
(
'manage_undo_transaction
s'
,)),
'propertyIds'
,
'propertyValues'
,
'propertyItem
s'
,)),
(
'Change permissions'
,
(
'manage_acces
s'
,)),
(
'Undo changes'
,
(
'manage_undo_transaction
s'
,)),
(
'Add objects'
,
(
'manage_addObject
'
,)),
(
'Change permissions'
,
(
'manage_access
'
,)),
(
'Delete objects'
,
(
'manage_delObjects
'
,)),
(
'Add objects'
,
(
'manage_addObject
'
,)),
(
'Manage properties'
,
(
'Delete objects'
,
(
'manage_delObjects'
,))
,
(
'manage_addProperty'
,
'manage_editP
roperties'
,
(
'Manage p
roperties'
,
'manage_delProperties'
,
'manage_changeProperties'
,))
,
(
'manage_addProperty'
,
'manage_editProperties'
,
(
'Shared permission'
,
(
'
'
,)),
'manage_delProperties'
,
'manage_changeProperties
'
,)),
)
)
objectIds__roles__
=
'Shared'
,
'Manager'
def
tpValues
(
self
):
def
tpValues
(
self
):
r
=
[]
r
=
[]
...
...
lib/python/OFS/Image.py
View file @
0612b700
"""Image object"""
"""Image object"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
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
())
...
...
lib/python/OFS/SimpleItem.py
View file @
0612b700
...
@@ -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
#
#
...
...
lib/python/Products/ExternalMethod/ExternalMethod.py
View file @
0612b700
...
@@ -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
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
0612b700
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
__doc__
=
'''Generic Database Connection Support
__doc__
=
'''Generic Database Connection Support
$Id: Connection.py,v 1.1
2 1998/04/29 18:31:45 jeffrey
Exp $'''
$Id: Connection.py,v 1.1
3 1998/05/08 15:00:08 jim
Exp $'''
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
3
$'
[
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 ***
#
#
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
0612b700
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.4
5 1998/04/29 21:17:51
jim Exp $'''
$Id: DA.py,v 1.4
6 1998/05/08 15:00:27
jim Exp $'''
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
6
$'
[
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.
#
#
...
...
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