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
0a50ced0
Commit
0a50ced0
authored
Apr 15, 2008
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to commit more test setup code
parent
900324ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
lib/python/Products/Five/browser/tests/aqlegacy.py
lib/python/Products/Five/browser/tests/aqlegacy.py
+13
-0
lib/python/Products/Five/browser/tests/aqlegacy.zcml
lib/python/Products/Five/browser/tests/aqlegacy.zcml
+7
-0
No files found.
lib/python/Products/Five/browser/tests/aqlegacy.py
View file @
0a50ced0
...
@@ -49,6 +49,19 @@ class LegacyTemplate(BrowserView):
...
@@ -49,6 +49,19 @@ class LegacyTemplate(BrowserView):
def
__call__
(
self
):
def
__call__
(
self
):
return
self
.
template
()
return
self
.
template
()
class
LegacyTemplateTwo
(
BrowserView
):
template
=
ViewPageTemplateFile
(
'falcon.pt'
)
def
__init__
(
self
,
context
,
request
):
self
.
__parent__
=
context
self
.
context
=
context
self
.
request
=
request
self
.
template
=
ViewPageTemplateFile
(
'falcon.pt'
)
def
__call__
(
self
):
return
self
.
template
()
class
Explicit
(
Acquisition
.
Explicit
):
class
Explicit
(
Acquisition
.
Explicit
):
def
render
(
self
):
def
render
(
self
):
...
...
lib/python/Products/Five/browser/tests/aqlegacy.zcml
View file @
0a50ced0
...
@@ -22,6 +22,13 @@
...
@@ -22,6 +22,13 @@
permission="zope.Public"
permission="zope.Public"
/>
/>
<browser:page
for="*"
name="template_two"
class=".aqlegacy.LegacyTemplateTwo"
permission="zope.Public"
/>
<browser:page
<browser:page
for="*"
for="*"
name="explicit"
name="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