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
c5aa30f7
Commit
c5aa30f7
authored
Sep 01, 2007
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that a viewlet inheriting from Explicit also has the right
legacy attributes and they point to the right things.
parent
a6d9d6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/python/Products/Five/browser/tests/aqlegacy.py
lib/python/Products/Five/browser/tests/aqlegacy.py
+4
-1
No files found.
lib/python/Products/Five/browser/tests/aqlegacy.py
View file @
c5aa30f7
...
...
@@ -84,7 +84,10 @@ class ExplicitViewlet(Acquisition.Explicit):
self
.
request
=
request
def
update
(
self
):
pass
# Make sure that the viewlet has the legacy attributes and
# they point to the right objects.
assert
self
.
aq_parent
==
self
.
context
assert
self
.
aq_base
==
self
def
render
(
self
):
return
'Viewlet inheriting from Explicit'
...
...
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