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
2abb619c
Commit
2abb619c
authored
Sep 02, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of ^Ms
parent
4f997c7e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1390 additions
and
1369 deletions
+1390
-1369
lib/python/DocumentTemplate/DT_Doc.py
lib/python/DocumentTemplate/DT_Doc.py
+323
-323
lib/python/DocumentTemplate/DT_HTML.py
lib/python/DocumentTemplate/DT_HTML.py
+182
-167
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+720
-717
lib/python/DocumentTemplate/DT_UI.py
lib/python/DocumentTemplate/DT_UI.py
+165
-162
No files found.
lib/python/DocumentTemplate/DT_Doc.py
View file @
2abb619c
lib/python/DocumentTemplate/DT_HTML.py
View file @
2abb619c
"""HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.
1 1997/08/27 18:55:41 jim Exp $"""
$Id: DT_HTML.py,v 1.
2 1997/09/02 19:04:09 jim Exp $"""
from
DT_String
import
String
,
FileMixin
import
DT_Doc
,
DT_String
,
regex
from
regsub
import
gsub
from
string
import
strip
class
HTML
(
DT_String
.
String
):
__doc__
=
DT_Doc
.
HTML__doc__
...
...
@@ -20,7 +21,7 @@ class HTML(DT_String.String):
'-->' # end
, regex.casefold)
def parseTag(self, tagre, command=None
):
def parseTag(self, tagre, command=None
, sargs=''):
"""Parse a tag using an already matched re
Return: tag, args, command, coname
...
...
@@ -33,11 +34,22 @@ class HTML(DT_String.String):
or None otherwise
"""
tag, end, name, args, =tagre.group(0, 'end', 'name', 'args')
args=strip(args)
if end:
if not command or name != command.name:
raise ParseError, 'unexpected end tag'
return tag, args, None, None
if command and name in command.blockContinuations:
if name=='else' and args:
# Waaaaaah! Have to special case else because of
# old else start tag usage. Waaaaaaah!
l=len(args)
if not (args==sargs or
args==sargs[:l] and sargs[l:l+1] in '
\
t
\
n
'):
return tag, args, self.commands[name], None
return tag, args, None, name
try: return tag, args, self.commands[name], None
...
...
@@ -165,6 +177,9 @@ class HTMLFile(FileMixin, HTML):
##########################################################################
#
# $Log: DT_HTML.py,v $
# Revision 1.2 1997/09/02 19:04:09 jim
# Got rid of ^Ms
#
# Revision 1.1 1997/08/27 18:55:41 jim
# initial
#
lib/python/DocumentTemplate/DT_In.py
View file @
2abb619c
...
...
@@ -212,7 +212,7 @@
of the module 'Missing', if present.
'''
__rcs_id__
=
'$Id: DT_In.py,v 1.
1 1997/08/27 18:55:42 jim Exp $'
__rcs_id__
=
'$Id: DT_In.py,v 1.
2 1997/09/02 19:04:24 jim Exp $'
############################################################################
# Copyright
...
...
@@ -266,7 +266,7 @@ __rcs_id__='$Id: DT_In.py,v 1.1 1997/08/27 18:55:42 jim Exp $'
# (540) 371-6909
#
############################################################################
__version__
=
'$Revision: 1.
1 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2 $'
[
11
:
-
2
]
from
DT_Util
import
*
...
...
@@ -714,6 +714,9 @@ class sequence_variables:
############################################################################
# $Log: DT_In.py,v $
# Revision 1.2 1997/09/02 19:04:24 jim
# Got rid of ^Ms
#
# Revision 1.1 1997/08/27 18:55:42 jim
# initial
#
...
...
lib/python/DocumentTemplate/DT_UI.py
View file @
2abb619c
__doc__
=
'''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.
1 1997/08/27 18:55:43 jim Exp $'''
$Id: DT_UI.py,v 1.
2 1997/09/02 19:04:52 jim Exp $'''
############################################################################
# Copyright
...
...
@@ -55,7 +55,7 @@ $Id: DT_UI.py,v 1.1 1997/08/27 18:55:43 jim Exp $'''
# (540) 371-6909
#
############################################################################
__version__
=
'$Revision: 1.
1 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2 $'
[
11
:
-
2
]
from
DT_HTML
import
HTML
...
...
@@ -160,6 +160,9 @@ HTML.editConfirmation=HTML(
############################################################################
# $Log: DT_UI.py,v $
# Revision 1.2 1997/09/02 19:04:52 jim
# Got rid of ^Ms
#
# Revision 1.1 1997/08/27 18:55:43 jim
# initial
#
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