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
584a272d
Commit
584a272d
authored
Jul 04, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for collector #1403.
parent
ca3956f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
lib/python/Products/Transience/Transience.py
lib/python/Products/Transience/Transience.py
+2
-2
lib/python/Products/Transience/tests/testTimeoutRelated.py
lib/python/Products/Transience/tests/testTimeoutRelated.py
+4
-0
No files found.
lib/python/Products/Transience/Transience.py
View file @
584a272d
...
...
@@ -717,10 +717,10 @@ class TransientObjectContainer(SimpleItem):
method
=
self
.
unrestrictedTraverse
(
callback
)
except
(
KeyError
,
AttributeError
):
path
=
self
.
getPhysicalPath
()
err
=
'No such
method %s in %s
%s'
err
=
'No such
onAdd/onDelete method %s referenced via
%s'
LOG
(
'Transience'
,
WARNING
,
err
%
(
callback
,
'/'
.
join
(
path
)
,
name
),
err
%
(
callback
,
'/'
.
join
(
path
)),
error
=
sys
.
exc_info
()
)
return
...
...
lib/python/Products/Transience/tests/testTimeoutRelated.py
View file @
584a272d
...
...
@@ -117,6 +117,10 @@ class TestNotifications(TestBase):
self
.
assertEqual
(
type
(
k
),
type
(
now
))
self
.
assert_
(
k
<=
now
)
def
testMissingCallbackGetCallbackReturnsNone
(
self
):
# in response to http://zope.org/Collectors/Zope/1403
self
.
assertEqual
(
None
,
self
.
app
.
sm
.
_getCallback
(
'/foo/bar/baz'
))
def
addNotificationTarget
(
item
,
context
):
item
[
'starttime'
]
=
fauxtime
.
time
()
...
...
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