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
7c5c1a1a
Commit
7c5c1a1a
authored
Jul 13, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged access fix for propertysheets object methods from 2.2 branch
parent
c1d23a7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+20
-1
No files found.
lib/python/OFS/PropertySheets.py
View file @
7c5c1a1a
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
,
Globals
from
ZPublisher.Converters
import
type_converters
...
...
@@ -574,6 +574,20 @@ class PropertySheets(Traversable, Implicit, App.Management.Tabs):
id
=
'propertysheets'
__ac_permissions__
=
(
(
'Manage properties'
,
(
'manage_addPropertySheet'
,
'addPropertySheet'
,
'delPropertySheet'
)),
(
'Access contents information'
,
(
'items'
,
'values'
,
'get'
,
''
),
(
'Anonymous'
,
'Manager'
),
),
(
'View management screens'
,
(
'manage'
,)),
)
webdav
=
DAVProperties
()
def
_get_defaults
(
self
):
return
(
self
.
webdav
,)
...
...
@@ -607,6 +621,7 @@ class PropertySheets(Traversable, Implicit, App.Management.Tabs):
return
r
def
get
(
self
,
name
,
default
=
None
):
# pdb.set_trace()
for
propset
in
self
.
__propsets__
():
if
propset
.
id
==
name
or
propset
.
xml_namespace
()
==
name
:
return
propset
.
__of__
(
self
)
...
...
@@ -669,6 +684,8 @@ class PropertySheets(Traversable, Implicit, App.Management.Tabs):
return
PropertySheets
.
inheritedAttribute
(
'tabs_path_info'
)(
self
,
script
,
path
)
Globals
.
default__class_init__
(
PropertySheets
)
class
DefaultPropertySheets
(
PropertySheets
):
"""A PropertySheets container that contains a default property
...
...
@@ -679,6 +696,8 @@ class DefaultPropertySheets(PropertySheets):
def
_get_defaults
(
self
):
return
(
self
.
default
,
self
.
webdav
)
Globals
.
default__class_init__
(
DefaultPropertySheets
)
class
FixedSchema
(
PropertySheet
):
...
...
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