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
e438f1e1
Commit
e438f1e1
authored
Jan 10, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ClassicHTMLFile alias
parent
13de7341
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/App/special_dtml.py
lib/python/App/special_dtml.py
+4
-3
No files found.
lib/python/App/special_dtml.py
View file @
e438f1e1
...
...
@@ -88,7 +88,7 @@ import DocumentTemplate, Common, Persistence, MethodObject, Globals, os
class
HTML
(
DocumentTemplate
.
HTML
,
Persistence
.
Persistent
,):
"Persistent HTML Document Templates"
class
HTMLFile
(
DocumentTemplate
.
HTMLFile
,
MethodObject
.
Method
,):
class
Classic
HTMLFile
(
DocumentTemplate
.
HTMLFile
,
MethodObject
.
Method
,):
"Persistent HTML Document Templates read from files"
class
func_code
:
pass
...
...
@@ -105,7 +105,7 @@ class HTMLFile(DocumentTemplate.HTMLFile,MethodObject.Method,):
args
=
(
self
,
os
.
path
.
join
(
_prefix
,
name
+
'.dtml'
))
if
not
kw
.
has_key
(
'__name__'
):
kw
[
'__name__'
]
=
os
.
path
.
split
(
name
)[
-
1
]
apply
(
HTMLFile
.
inheritedAttribute
(
'__init__'
),
args
,
kw
)
apply
(
Classic
HTMLFile
.
inheritedAttribute
(
'__init__'
),
args
,
kw
)
def
_cook_check
(
self
):
if
Globals
.
DevelopmentMode
:
...
...
@@ -138,7 +138,7 @@ from DocumentTemplate.DT_String import _marker, DTReturn, render_blocks
from
DocumentTemplate.DT_Util
import
TemplateDict
,
InstanceDict
from
AccessControl
import
getSecurityManager
class
DTMLFile
(
Bindings
,
Explicit
,
HTMLFile
):
class
DTMLFile
(
Bindings
,
Explicit
,
Classic
HTMLFile
):
"HTMLFile with bindings and support for __render_with_namespace__"
func_code
=
None
...
...
@@ -235,4 +235,5 @@ class DTMLFile(Bindings, Explicit, HTMLFile):
from
Shared.DC.Scripts.Signature
import
_setFuncSignature
HTMLFile
=
ClassicHTMLFile
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