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
dd44b034
Commit
dd44b034
authored
Nov 10, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fixes to use Acquistion.aq_base from 2.2 branch
parent
866320f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
lib/python/OFS/PropertyManager.py
lib/python/OFS/PropertyManager.py
+4
-4
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+2
-6
No files found.
lib/python/OFS/PropertyManager.py
View file @
dd44b034
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property management"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
import
ExtensionClass
,
Globals
import
ZDOM
...
...
@@ -93,7 +93,7 @@ from ZPublisher.Converters import type_converters
from
Globals
import
HTMLFile
,
MessageDialog
from
string
import
find
,
join
,
lower
,
split
from
DocumentTemplate
import
html_quote
from
Acquisition
import
Implicit
from
Acquisition
import
Implicit
,
aq_base
from
Globals
import
Persistent
from
DateTime
import
DateTime
...
...
@@ -196,7 +196,7 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
def
valid_property_id
(
self
,
id
):
if
not
id
or
id
[:
1
]
==
'_'
or
(
' '
in
id
)
\
or
hasattr
(
self
.
aq_base
,
id
):
or
hasattr
(
aq_base
(
self
)
,
id
):
return
0
return
1
...
...
@@ -386,7 +386,7 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
propdict
=
self
.
propdict
()
nd
=
self
.
_reserved_names
for
id
in
ids
:
if
not
hasattr
(
self
.
aq_base
,
id
):
if
not
hasattr
(
aq_base
(
self
)
,
id
):
raise
'BadRequest'
,
(
'The property <em>%s</em> does not exist'
%
id
)
if
(
not
'd'
in
propdict
[
id
].
get
(
'mode'
,
'wd'
))
or
(
id
in
nd
):
...
...
lib/python/OFS/PropertySheets.py
View file @
dd44b034
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.5
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
7
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
,
Globals
from
ZPublisher.Converters
import
type_converters
...
...
@@ -97,6 +97,7 @@ from webdav.common import urlbase
from
ExtensionClass
import
Base
from
Globals
import
Persistent
from
Traversable
import
Traversable
from
Acquisition
import
aq_base
class
View
(
App
.
Management
.
Tabs
,
Base
):
"""A view of an object, typically used for management purposes
...
...
@@ -780,8 +781,3 @@ def absattr(attr):
if
callable
(
attr
):
return
attr
()
return
attr
def
aq_base
(
ob
):
if
hasattr
(
ob
,
'aq_base'
):
return
ob
.
aq_base
return
ob
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