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
384d6afe
Commit
384d6afe
authored
Nov 11, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a little compatibility with cDocumentTemplate.
parent
7ca4e513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/DocumentTemplate/pDocumentTemplate.py
lib/python/DocumentTemplate/pDocumentTemplate.py
+10
-2
No files found.
lib/python/DocumentTemplate/pDocumentTemplate.py
View file @
384d6afe
...
...
@@ -58,8 +58,8 @@
__doc__
=
'''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.
5 1997/10/29 16:59:28
jim Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
$Id: pDocumentTemplate.py,v 1.
6 1997/11/11 18:39:29
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
regex
,
string
...
...
@@ -80,6 +80,8 @@ isFunctionType=isFunctionType.has_key
class
InstanceDict
:
validate
=
None
def
__init__
(
self
,
o
,
namespace
,
validate
=
None
):
self
.
self
=
o
self
.
cache
=
{}
...
...
@@ -138,6 +140,9 @@ class TemplateDict:
level
=
0
def
pop
(
self
,
n
):
return
self
.
dicts
.
pop
(
n
)
def
push
(
self
,
d
):
return
self
.
dicts
.
push
(
d
)
def
__init__
(
self
):
m
=
self
.
dicts
=
MultiMapping
()
self
.
pop
=
m
.
pop
...
...
@@ -172,6 +177,9 @@ def render_blocks(self, md):
##############################################################################
#
# $Log: pDocumentTemplate.py,v $
# Revision 1.6 1997/11/11 18:39:29 jim
# Added a little compatibility with cDocumentTemplate.
#
# Revision 1.5 1997/10/29 16:59:28 jim
# Changed name of get to getitem.
#
...
...
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