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
faea22d3
Commit
faea22d3
authored
May 26, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made namespace() use the C implementation when available.
parent
8c4be9f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+5
-2
No files found.
lib/python/DocumentTemplate/DT_Util.py
View file @
faea22d3
...
...
@@ -82,8 +82,8 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
'''$Id: DT_Util.py,v 1.6
3 2000/05/25 18:29:25 brian
Exp $'''
__version__
=
'$Revision: 1.6
3
$'
[
11
:
-
2
]
'''$Id: DT_Util.py,v 1.6
4 2000/05/26 21:37:48 shane
Exp $'''
__version__
=
'$Revision: 1.6
4
$'
[
11
:
-
2
]
import
regex
,
string
,
math
,
os
from
string
import
strip
,
join
,
atoi
,
lower
,
split
,
find
...
...
@@ -258,6 +258,9 @@ class namespace_:
def
namespace
(
self
,
**
kw
):
"""Create a tuple consisting of a single instance whos attributes are
provided as keyword arguments."""
if
callable
(
self
):
# Use the default implementation (usually from cDocumentTemplate.)
return
self
(
kw
)
r
=
namespace_
()
d
=
r
.
__dict__
for
k
,
v
in
kw
.
items
():
d
[
k
]
=
v
...
...
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