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
8e205bef
Commit
8e205bef
authored
Aug 28, 2007
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide BBB for ViewPageTemplateFile
parent
4a789847
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lib/python/Products/Five/browser/pagetemplatefile.py
lib/python/Products/Five/browser/pagetemplatefile.py
+12
-1
No files found.
lib/python/Products/Five/browser/pagetemplatefile.py
View file @
8e205bef
...
...
@@ -15,6 +15,7 @@
$Id$
"""
from
os.path
import
basename
import
zope.app.pagetemplate
from
Acquisition
import
aq_get
...
...
@@ -22,11 +23,21 @@ from AccessControl import getSecurityManager
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.PageTemplates.Expressions
import
createTrustedZopeEngine
from
Products.Five.bbb
import
AquisitionBBB
_engine
=
createTrustedZopeEngine
()
def
getEngine
():
return
_engine
class
ViewPageTemplateFile
(
zope
.
app
.
pagetemplate
.
ViewPageTemplateFile
):
class
ViewPageTemplateFile
(
zope
.
app
.
pagetemplate
.
ViewPageTemplateFile
,
AquisitionBBB
):
def
getId
(
self
):
return
basename
(
self
.
filename
)
@
property
def
id
(
self
):
return
self
.
getId
()
def
pt_getEngine
(
self
):
return
getEngine
()
...
...
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