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
93b4fe73
Commit
93b4fe73
authored
Jul 28, 2007
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new name, ViewPageTemplateFile
parent
9ca465a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/Products/Five/browser/metaconfigure.py
lib/python/Products/Five/browser/metaconfigure.py
+3
-3
No files found.
lib/python/Products/Five/browser/metaconfigure.py
View file @
93b4fe73
...
...
@@ -39,7 +39,7 @@ from Products.Five.browser.resource import FileResourceFactory
from
Products.Five.browser.resource
import
ImageResourceFactory
from
Products.Five.browser.resource
import
PageTemplateResourceFactory
from
Products.Five.browser.resource
import
DirectoryResourceFactory
from
Products.Five.browser.pagetemplatefile
import
ZopeTwo
PageTemplateFile
from
Products.Five.browser.pagetemplatefile
import
View
PageTemplateFile
from
Products.Five.metaclass
import
makeClass
from
Products.Five.security
import
getSecurityInfo
,
protectClass
,
protectName
from
Products.Five.security
import
CheckerPrivateId
...
...
@@ -185,7 +185,7 @@ class view(zope_app_view):
for
pname
,
attribute
,
template
in
self
.
pages
:
if
template
:
cdict
[
pname
]
=
ZopeTwo
PageTemplateFile
(
template
)
cdict
[
pname
]
=
View
PageTemplateFile
(
template
)
if
attribute
and
attribute
!=
name
:
cdict
[
attribute
]
=
cdict
[
pname
]
else
:
...
...
@@ -421,7 +421,7 @@ def makeClassForTemplate(filename, globals=None, used_for=None,
# XXX needs to deal with security from the bases?
if
cdict
is
None
:
cdict
=
{}
cdict
.
update
({
'index'
:
ZopeTwo
PageTemplateFile
(
filename
,
globals
),
cdict
.
update
({
'index'
:
View
PageTemplateFile
(
filename
,
globals
),
'__name__'
:
name
})
bases
+=
(
ViewMixinForTemplates
,)
class_
=
makeClass
(
"SimpleViewClass from %s"
%
filename
,
bases
,
cdict
)
...
...
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