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
fdfeca63
Commit
fdfeca63
authored
Jun 28, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalized Let tag
parent
a4350ddf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
lib/python/DocumentTemplate/DT_Let.py
lib/python/DocumentTemplate/DT_Let.py
+1
-3
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+2
-1
No files found.
lib/python/DocumentTemplate/DT_Let.py
View file @
fdfeca63
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
''' The Let tag was contributed to Zope by and is copyright, 1999
''' The Let tag was contributed to Zope by and is copyright, 1999
Philip J. Eby. Permission has been granted to release the Let tag
Phil
l
ip J. Eby. Permission has been granted to release the Let tag
under the Zope Public License.
under the Zope Public License.
...
@@ -112,7 +112,6 @@
...
@@ -112,7 +112,6 @@
as desired.
as desired.
'''
'''
from
DocumentTemplate.DT_String
import
String
from
DocumentTemplate.DT_Util
import
render_blocks
,
str
,
Eval
,
expr_globals
,
Eval
,
ParseError
,
regex
,
strip
from
DocumentTemplate.DT_Util
import
render_blocks
,
str
,
Eval
,
expr_globals
,
Eval
,
ParseError
,
regex
,
strip
class
Let
:
class
Let
:
...
@@ -176,4 +175,3 @@ def parse_let_params(text,
...
@@ -176,4 +175,3 @@ def parse_let_params(text,
if text: return apply(parse_let_params,(text,result,tag),parms)
if text: return apply(parse_let_params,(text,result,tag),parms)
else: return result
else: return result
String.commands['
let
']=Let
lib/python/DocumentTemplate/DT_String.py
View file @
fdfeca63
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
"$Id: DT_String.py,v 1.2
7 1999/06/24 20:21:20 brian
Exp $"
"$Id: DT_String.py,v 1.2
8 1999/06/28 22:04:32 michel
Exp $"
from
string
import
split
,
strip
from
string
import
split
,
strip
import
regex
,
ts_regex
import
regex
,
ts_regex
...
@@ -136,6 +136,7 @@ class String:
...
@@ -136,6 +136,7 @@ class String:
'comment'
:
Comment
,
'comment'
:
Comment
,
'raise'
:
(
'raise'
,
'DT_Raise'
,
'Raise'
),
'raise'
:
(
'raise'
,
'DT_Raise'
,
'Raise'
),
'try'
:
(
'try'
,
'DT_Try'
,
'Try'
),
'try'
:
(
'try'
,
'DT_Try'
,
'Try'
),
'let'
:
(
'let'
,
'DT_Let'
,
'Let'
),
}
}
def
SubTemplate
(
self
,
name
):
return
String
(
''
,
__name__
=
name
)
def
SubTemplate
(
self
,
name
):
return
String
(
''
,
__name__
=
name
)
...
...
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