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
aecaee81
Commit
aecaee81
authored
Mar 03, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
162c3479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+4
-7
No files found.
lib/python/OFS/PropertySheets.py
View file @
aecaee81
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
"""Property sheets"""
"""Property sheets"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
import
time
,
string
,
App
.
Management
from
ZPublisher.Converters
import
type_converters
from
ZPublisher.Converters
import
type_converters
...
@@ -430,9 +430,6 @@ class DAVProperties(Virtual, PropertySheet):
...
@@ -430,9 +430,6 @@ class DAVProperties(Virtual, PropertySheet):
{
'id'
:
'source'
,
'mode'
:
'r'
},
{
'id'
:
'source'
,
'mode'
:
'r'
},
)
)
def
hasProperty
(
self
,
id
):
return
self
.
dav__propmap
.
has_key
(
id
)
def
getProperty
(
self
,
id
,
default
=
None
):
def
getProperty
(
self
,
id
,
default
=
None
):
method
=
'dav__%s'
%
id
method
=
'dav__%s'
%
id
if
not
hasattr
(
self
,
method
):
if
not
hasattr
(
self
,
method
):
...
@@ -440,13 +437,13 @@ class DAVProperties(Virtual, PropertySheet):
...
@@ -440,13 +437,13 @@ class DAVProperties(Virtual, PropertySheet):
return
getattr
(
self
,
method
)()
return
getattr
(
self
,
method
)()
def
_setProperty
(
self
,
id
,
value
,
type
=
'string'
,
meta
=
None
):
def
_setProperty
(
self
,
id
,
value
,
type
=
'string'
,
meta
=
None
):
raise
ValueError
,
'
Property cannot be set.'
raise
ValueError
,
'
%s cannot be set.'
%
id
def
_updateProperty
(
self
,
id
,
value
):
def
_updateProperty
(
self
,
id
,
value
):
raise
ValueError
,
'
Property cannot be set.'
raise
ValueError
,
'
%s cannot be updated.'
%
id
def
_delProperty
(
self
,
id
):
def
_delProperty
(
self
,
id
):
raise
ValueError
,
'
Property cannot be deleted.'
raise
ValueError
,
'
%s cannot be deleted.'
%
id
def
propertyMap
(
self
):
def
propertyMap
(
self
):
return
self
.
pm
return
self
.
pm
...
...
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