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
5870471e
Commit
5870471e
authored
Feb 08, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow client in __call__ to be a tuple of client objects which are
pushed into md in order to support DTMLDocument
parent
577afb6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+16
-5
No files found.
lib/python/DocumentTemplate/DT_String.py
View file @
5870471e
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
# file.
# file.
#
#
##############################################################################
##############################################################################
"$Id: DT_String.py,v 1.2
0 1998/12/04 20:15:28 jim
Exp $"
"$Id: DT_String.py,v 1.2
1 1999/02/08 17:46:37 brian
Exp $"
from
string
import
split
,
strip
from
string
import
split
,
strip
import
regex
,
ts_regex
import
regex
,
ts_regex
...
@@ -478,7 +478,10 @@ class String:
...
@@ -478,7 +478,10 @@ class String:
if hasattr(mapping,'AUTHENTICATED_USER'):
if hasattr(mapping,'AUTHENTICATED_USER'):
md.AUTHENTICATED_USER=mapping['AUTHENTICATED_USER']
md.AUTHENTICATED_USER=mapping['AUTHENTICATED_USER']
md.validate=self.validate
md.validate=self.validate
if client is not None: md.this=client
if client is not None:
if type(client)==type(()):
md.this=client[-1]
else: md.this=client
pushed=0
pushed=0
level=md.level
level=md.level
...
@@ -487,9 +490,17 @@ class String:
...
@@ -487,9 +490,17 @@ class String:
md.level=level+1
md.level=level+1
if client is not None:
if client is not None:
push(InstanceDict(client,md)) # Circ. Ref. 8-|
if type(client)==type(()):
pushed=pushed+1
# if client is a tuple, it represents a "
path
" of clients
# which should be pushed onto the md in order.
for ob in client:
push(InstanceDict(ob, md)) # Circ. Ref. 8-|
pushed=pushed+1
else:
# otherwise its just a normal client object.
push(InstanceDict(client, md)) # Circ. Ref. 8-|
pushed=pushed+1
if self._vars:
if self._vars:
push(self._vars)
push(self._vars)
pushed=pushed+1
pushed=pushed+1
...
...
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