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
9716152b
Commit
9716152b
authored
Aug 01, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged permission fixes to property sheets from 2.2 branch
parent
ba0815f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+25
-2
No files found.
lib/python/OFS/PropertySheets.py
View file @
9716152b
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
,
Globals
from
ZPublisher.Converters
import
type_converters
...
...
@@ -158,7 +158,22 @@ class PropertySheet(Traversable, Persistent, Implicit):
_properties
=
()
_extensible
=
1
icon
=
'p_/Properties_icon'
__ac_permissions__
=
(
(
'Manage properties'
,
(
'manage_addProperty'
,
'manage_editProperties'
,
'manage_delProperties'
,
'manage_changeProperties'
,
'manage_propertiesForm'
,
)),
(
'Access contents information'
,
(
'xml_namespace'
,
'hasProperty'
,
'getProperty'
,
'getPropertyType'
,
'propertyIds'
,
'propertyValues'
,
'propertyItems'
,
'propertyInfo'
,
'propertyMap'
,
''
),
(
'Anonymous'
,
'Manager'
),
),
)
def
property_extensible_schema__
(
self
):
return
self
.
_extensible
def
__init__
(
self
,
id
,
md
=
None
):
...
...
@@ -471,6 +486,9 @@ class PropertySheet(Traversable, Persistent, Implicit):
if
REQUEST
is
not
None
:
return
self
.
manage
(
self
,
REQUEST
)
Globals
.
default__class_init__
(
PropertySheet
)
class
Virtual
:
def
__init__
(
self
):
...
...
@@ -479,6 +497,7 @@ class Virtual:
def
v_self
(
self
):
return
self
.
aq_parent
.
aq_parent
class
DefaultProperties
(
Virtual
,
PropertySheet
,
View
):
"""The default property set mimics the behavior of old-style Zope
properties -- it stores its property values in the instance of
...
...
@@ -487,6 +506,8 @@ class DefaultProperties(Virtual, PropertySheet, View):
id
=
'default'
_md
=
{
'xmlns'
:
'http://www.zope.org/propsets/default'
}
Globals
.
default__class_init__
(
DefaultProperties
)
class
DAVProperties
(
Virtual
,
PropertySheet
,
View
):
"""WebDAV properties"""
...
...
@@ -567,6 +588,8 @@ class DAVProperties(Virtual, PropertySheet, View):
' <d:locktype><d:write/></d:locktype>
\
n
'
\
' </n:lockentry>
\
n
'
Globals
.
default__class_init__
(
DAVProperties
)
class
PropertySheets
(
Traversable
,
Implicit
,
App
.
Management
.
Tabs
):
"""A tricky container to keep property sets from polluting
...
...
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