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
9a829cef
Commit
9a829cef
authored
May 21, 2006
by
Philipp von Weitershausen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pt_getEngine is now handled by Products.PageTemplates.PageTemplate.PageTemplate (used
as a base class)
parent
61a8928e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
lib/python/Products/PageTemplates/PageTemplateFile.py
lib/python/Products/PageTemplates/PageTemplateFile.py
+0
-5
No files found.
lib/python/Products/PageTemplates/PageTemplateFile.py
View file @
9a829cef
...
@@ -23,7 +23,6 @@ from OFS.SimpleItem import SimpleItem
...
@@ -23,7 +23,6 @@ from OFS.SimpleItem import SimpleItem
from
OFS.Traversable
import
Traversable
from
OFS.Traversable
import
Traversable
from
Shared.DC.Scripts.Script
import
Script
from
Shared.DC.Scripts.Script
import
Script
from
Shared.DC.Scripts.Signature
import
FuncCode
from
Shared.DC.Scripts.Signature
import
FuncCode
from
Products.PageTemplates.Expressions
import
getEngine
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
Products.PageTemplates.ZopePageTemplate
import
guess_type
from
Products.PageTemplates.ZopePageTemplate
import
guess_type
...
@@ -80,10 +79,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable):
...
@@ -80,10 +79,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable):
content
=
open
(
filename
).
read
()
content
=
open
(
filename
).
read
()
self
.
pt_edit
(
content
,
guess_type
(
filename
,
content
))
self
.
pt_edit
(
content
,
guess_type
(
filename
,
content
))
def
pt_getEngine
(
self
):
return
getEngine
()
def
pt_getContext
(
self
):
def
pt_getContext
(
self
):
root
=
self
.
getPhysicalRoot
()
root
=
self
.
getPhysicalRoot
()
context
=
self
.
_getContext
()
context
=
self
.
_getContext
()
...
...
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