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
9d8e08cf
Commit
9d8e08cf
authored
Aug 02, 2007
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a bit of debugging code, so someone more knowledgeable can have a look ;)
parent
11698435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
lib/python/Products/Five/browser/__init__.py
lib/python/Products/Five/browser/__init__.py
+17
-3
No files found.
lib/python/Products/Five/browser/__init__.py
View file @
9d8e08cf
...
...
@@ -23,15 +23,28 @@ class BrowserView(zope.publisher.browser.BrowserView):
# BBB for code that expects BrowserView to still inherit from
# Acquisition.Explicit.
# counter = 0
def
__of__
(
self
,
context
):
# Technically this isn't in line with the way Acquisition's
# __of__ works. With Acquisition, you get a wrapper around
# the original object and only that wrapper's parent is the
# new context. Here we change the original object.
# The first segfault happens in form.tests.forms.txt in the first line
# of the "Widget Overrides" chapter (line 154).
#self.__parent__ = context # ugh. segfault!
# XXX The first segfault happens in form.tests.forms.txt in the first
# line of the "Widget Overrides" chapter (line 154).
# What causes it is:
# ../zope2/lib/python/Zope2/App/startup.py(199)__call__()
# -> log = aq_acquire(published, '__error_log__', containment=1)
# Which causes an infinite loop :(
# self.__parent__ = context # ugh. segfault!
# self.counter = self.counter + 1
# if self.counter > 10:
# import pdb; pdb.set_trace()
return
self
...
...
@@ -56,3 +69,4 @@ class BrowserView(zope.publisher.browser.BrowserView):
def
aq_inContextOf
(
self
,
*
args
,
**
kw
):
return
Acquisition
.
aq_inContextOf
(
self
,
*
args
,
**
kw
)
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