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
5bcc8d7f
Commit
5bcc8d7f
authored
Oct 16, 2006
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2218: bad 'error' argument to logger call.
parent
1d77cd6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
doc/CHANGES.txt
doc/CHANGES.txt
+6
-5
lib/python/OFS/Cache.py
lib/python/OFS/Cache.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
5bcc8d7f
...
...
@@ -7,13 +7,14 @@ Zope Changes
Zope 2.9.6 (unreleased)
Bugs fixed
- Collector #2205: fixed wrong logger argument in ZRDB/Connection.py
Bugs fixed
- Collector #2208: rewriting/setting the 'charset' part of the content-type
HTTP header will be done only for 'text/*'
- Collector #2218: fixed wrong logger argument in OFS/Cache.py
- Collector #2205: fixed wrong logger argument in ZRDB/Connection.py
- Collector #2208: rewriting/setting the 'charset' part of the
content-type HTTP header will be done only for 'text/*'
Zope 2.9.5 (2006/10/03)
...
...
lib/python/OFS/Cache.py
View file @
5bcc8d7f
...
...
@@ -197,7 +197,7 @@ class Cacheable:
mtime_func
,
default
)
return
val
except
:
logger
.
warn
(
'ZCache_get() exception'
,
e
rror
=
sys
.
exc_info
())
logger
.
warn
(
'ZCache_get() exception'
,
e
xc_info
=
sys
.
exc_info
())
return
default
return
default
...
...
@@ -214,7 +214,7 @@ class Cacheable:
c
.
ZCache_set
(
ob
,
data
,
view_name
,
keywords
,
mtime_func
)
except
:
logger
.
warn
(
'ZCache_set() exception'
,
e
rror
=
sys
.
exc_info
())
logger
.
warn
(
'ZCache_set() exception'
,
e
xc_info
=
sys
.
exc_info
())
def
ZCacheable_invalidate
(
self
,
view_name
=
''
,
REQUEST
=
None
):
'''Called after a cacheable object is edited. Causes all
...
...
@@ -231,7 +231,7 @@ class Cacheable:
except
:
exc
=
sys
.
exc_info
()
try
:
logger
.
warn
(
'ZCache_invalidate() exception'
,
e
rror
=
exc
)
logger
.
warn
(
'ZCache_invalidate() exception'
,
e
xc_info
=
exc
)
message
=
'An exception occurred: %s: %s'
%
exc
[:
2
]
finally
:
exc
=
None
...
...
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