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
aa7784c2
Commit
aa7784c2
authored
Jan 16, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring pDoc pop() in line with cDoc's.
parent
cda929bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/DocumentTemplate/pDocumentTemplate.py
lib/python/DocumentTemplate/pDocumentTemplate.py
+6
-3
No files found.
lib/python/DocumentTemplate/pDocumentTemplate.py
View file @
aa7784c2
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.2
6 2000/12/19 16:20:44
evan Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
$Id: pDocumentTemplate.py,v 1.2
7 2001/01/16 18:08:27
evan Exp $'''
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
import
string
,
sys
,
types
from
string
import
join
...
...
@@ -167,7 +167,10 @@ class MultiMapping:
def
push
(
self
,
d
):
self
.
dicts
.
insert
(
0
,
d
)
def
pop
(
self
,
n
=
1
):
del
self
.
dicts
[:
n
]
def
pop
(
self
,
n
=
1
):
r
=
self
.
dicts
[
-
1
]
del
self
.
dicts
[:
n
]
return
r
def
keys
(
self
):
kz
=
[]
...
...
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