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
0f366eb4
Commit
0f366eb4
authored
Jun 22, 2006
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- updated deprecation warnings
parent
b051a119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+8
-6
No files found.
doc/CHANGES.txt
View file @
0f366eb4
...
...
@@ -18,6 +18,10 @@ Zope Changes
Bugs fixed
- OFS Application: Updated deprecation warnings.
Support for '__ac_permissions__' and 'meta_types' will be removed in
Zope 2.11, 'methods' support might remain longer.
- Collector #2136: Map ResourceLockedError to the correct response code.
- Collector #2109: XML-RPC did not handle DateTime.DateTime objects.
...
...
lib/python/OFS/Application.py
View file @
0f366eb4
...
...
@@ -798,7 +798,7 @@ def install_product(app, product_dir, product_name, meta_types,
warn
(
'__init__.py of %s has a long deprecated '
'
\
'
__ac_permissions__
\
'
attribute. '
'
\
'
__ac_permissions__
\
'
will be ignored by '
'install_product in Zope 2.1
0
. Please use registerClass '
'install_product in Zope 2.1
1
. Please use registerClass '
'instead.'
%
product
.
__name__
,
DeprecationWarning
)
for
p
in
pgetattr
(
product
,
'__ac_permissions__'
,
()):
...
...
@@ -813,7 +813,7 @@ def install_product(app, product_dir, product_name, meta_types,
if
pgetattr
(
product
,
'meta_types'
,
None
)
is
not
None
:
warn
(
'__init__.py of %s has a long deprecated
\
'
meta_types
\
'
'
'attribute.
\
'
meta_types
\
'
will be ignored by '
'install_product in Zope 2.1
0
. Please use registerClass '
'install_product in Zope 2.1
1
. Please use registerClass '
'instead.'
%
product
.
__name__
,
DeprecationWarning
)
for
meta_type
in
pgetattr
(
product
,
'meta_types'
,
()):
...
...
@@ -828,10 +828,12 @@ def install_product(app, product_dir, product_name, meta_types,
meta_types
.
append
(
meta_type
)
if
pgetattr
(
product
,
'methods'
,
None
)
is
not
None
:
warn
(
'__init__.py of %s has a long deprecated
\
'
methods
\
'
'
'attribute.
\
'
methods
\
'
will be ignored by '
'install_product in Zope 2.10. Please use registerClass '
'instead.'
%
product
.
__name__
,
warn
(
"__init__.py of %s has a long deprecated 'methods' "
"attribute. 'methods' support might be removed in Zope "
"2.11 or a later feature release. Please use the "
"'legacy' argument of registerClass instead if the "
"methods are constructors. Or refactor the product "
"using adapters."
%
product
.
__name__
,
DeprecationWarning
)
for
name
,
method
in
pgetattr
(
product
,
'methods'
,
{}).
items
():
...
...
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