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
00d63d2a
Commit
00d63d2a
authored
Nov 03, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed embedded dtml to new syntax.
parent
126c3c87
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
46 deletions
+44
-46
lib/python/App/Dialogs.py
lib/python/App/Dialogs.py
+5
-7
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+17
-17
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+5
-7
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+5
-5
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+8
-6
lib/python/Products/MailHost/SendMailTag.py
lib/python/Products/MailHost/SendMailTag.py
+4
-4
No files found.
lib/python/App/Dialogs.py
View file @
00d63d2a
...
...
@@ -103,7 +103,7 @@
target='_top')
</PRE>"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
Globals
import
HTML
...
...
@@ -111,13 +111,11 @@ from Globals import HTML
MessageDialog
=
HTML
(
"""
<HTML>
<HEAD>
<TITLE><
!--#var title--
></TITLE>
<TITLE><
dtml-var title
></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="<!--#var action-->" METHOD="GET"
<!--#if target-->
TARGET="<!--#var target-->"
<!--#/if target-->>
<FORM ACTION="<dtml-var action>" METHOD="GET" <dtml-if
target>TARGET="<dtml-var target>"</dtml-if>>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
<TR>
<TD VALIGN="TOP">
...
...
@@ -127,7 +125,7 @@ MessageDialog = HTML("""
<TD VALIGN="TOP">
<BR><BR>
<CENTER>
<
!--#var message--
>
<
dtml-var message
>
</CENTER>
</TD>
</TR>
...
...
lib/python/OFS/Application.py
View file @
00d63d2a
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.11
5 1999/10/21 14:08:08 jim
Exp $'''
__version__
=
'$Revision: 1.11
5
$'
[
11
:
-
2
]
$Id: Application.py,v 1.11
6 1999/11/03 16:05:20 brian
Exp $'''
__version__
=
'$Revision: 1.11
6
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
...
...
@@ -109,17 +109,17 @@ from zLOG import LOG, ERROR
_standard_error_msg
=
'''
\
<
!--#var standard_html_header--
>
<
dtml-var standard_html_header
>
<
!--#if error_message--
>
<
!--#var error_message--
>
<
!--#else--
>
<
dtml-if error_message
>
<
dtml-var error_message
>
<
dtml-else
>
<TABLE BORDER="0" WIDTH="100%">
<TR VALIGN="TOP">
<TD WIDTH="10%" ALIGN="CENTER">
<IMG SRC="<
!--#var BASE1--
>/p_/ZButton" ALT="Zope">
<IMG SRC="<
dtml-var BASE1
>/p_/ZButton" ALT="Zope">
</TD>
<TD WIDTH="90%">
...
...
@@ -128,8 +128,8 @@ _standard_error_msg='''\
</P>
<P>
<STRONG>Error Type: <
!--#var error_type--
></STRONG><BR>
<STRONG>Error Value: <
!--#var error_value--
></STRONG><BR>
<STRONG>Error Type: <
dtml-var error_type
></STRONG><BR>
<STRONG>Error Value: <
dtml-var error_value
></STRONG><BR>
</P>
<HR NOSHADE>
...
...
@@ -137,10 +137,10 @@ _standard_error_msg='''\
<P>Troubleshooting Suggestions</P>
<UL>
<
!--#if "error_type in ('KeyError','NameError')"--
>
<
dtml-if "error_type in ('KeyError','NameError')"
>
<LI>This resource may be trying to reference a
nonexistent object or variable <STRONG><
!--#var error_value--
></STRONG>.</LI>
<
!--#/if--
>
nonexistent object or variable <STRONG><
dtml-var error_value
></STRONG>.</LI>
<
/dtml-if
>
<LI>The URL may be incorrect.</LI>
<LI>The parameters passed to this resource may be incorrect.</LI>
<LI>A resource that this resource relies on may be encountering an error.</LI>
...
...
@@ -156,13 +156,13 @@ _standard_error_msg='''\
</TD></TR>
</TABLE>
<
!--#comment--
>
<
dtml-comment
>
Here, events like logging and other actions may also be performed, such as
sending mail automatically to the administrator.
<
!--#/comment--
>
<
/dtml-comment
>
<
!--#/if--
>
<
!--#var standard_html_footer--
>'''
<
/dtml-if
>
<
dtml-var standard_html_footer
>'''
class
Application
(
Globals
.
ApplicationDefaultPermissions
,
...
...
@@ -211,7 +211,7 @@ class Application(Globals.ApplicationDefaultPermissions,
self
,
'standard_html_header'
,
'Standard Html Header'
,
'<HTML><HEAD><TITLE><
!--#var title_or_id--
>'
\
'<HTML><HEAD><TITLE><
dtml-var title_or_id
>'
\
'</TITLE></HEAD><BODY BGCOLOR="#FFFFFF">'
)
Document
.
manage_addDocument
(
self
,
...
...
lib/python/OFS/CopySupport.py
View file @
00d63d2a
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""Copy interface"""
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
import
sys
,
string
,
Globals
,
Moniker
,
tempfile
,
ExtensionClass
from
marshal
import
loads
,
dumps
...
...
@@ -461,13 +461,11 @@ def _cb_decode(s):
fMessageDialog
=
Globals
.
HTML
(
"""
<HTML>
<HEAD>
<TITLE><
!--#var title--
></TITLE>
<TITLE><
dtml-var title
></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="<!--#var action-->" METHOD="GET"
<!--#if target-->
TARGET="<!--#var target-->"
<!--#/if target-->>
<FORM ACTION="<dtml-var action>" METHOD="GET" <dtml-if
target>TARGET="<dtml-var target>"</dtml-if>>
<TABLE BORDER="0" WIDTH="100%%" CELLPADDING="10">
<TR>
<TD VALIGN="TOP">
...
...
@@ -477,7 +475,7 @@ fMessageDialog=Globals.HTML("""
<TD VALIGN="TOP">
<BR><BR>
<CENTER>
<
!--#var message--
>
<
dtml-var message
>
</CENTER>
</TD>
</TR>
...
...
lib/python/OFS/DTMLDocument.py
View file @
00d63d2a
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
InstanceDict
,
TemplateDict
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
...
...
@@ -181,12 +181,12 @@ class DTMLDocument(PropertyManager, DTMLMethod):
Globals
.
default__class_init__
(
DTMLDocument
)
default_dd_html
=
"""<
!--#var standard_html_header--
>
<h2><
!--#var title_or_id--
></h2>
default_dd_html
=
"""<
dtml-var standard_html_header
>
<h2><
dtml-var title_or_id
></h2>
<p>
This is the <
!--#var id--
> Document.
This is the <
dtml-var id
> Document.
</p>
<
!--#var standard_html_footer--
>"""
<
dtml-var standard_html_footer
>"""
addForm
=
HTMLFile
(
'documentAdd'
,
globals
())
...
...
lib/python/OFS/DTMLMethod.py
View file @
00d63d2a
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -372,11 +372,13 @@ def decapitate(html, RESPONSE=None,
return html
default_dm_html="""<!--#var standard_html_header-->
<H2><!--#var title_or_id--> <!--#var document_title--></H2>
<P>This is the <!--#var document_id--> Document in
the <!--#var title_and_id--> Folder.</P>
<!--#var standard_html_footer-->"""
default_dm_html="""<dtml-var standard_html_header>
<h2><dtml-var title_or_id> <dtml-var document_title></h2>
<p>
This is the <dtml-var document_id> Document
in the <dtml-var title_and_id> Folder.
</p>
<dtml-var standard_html_footer>"""
addForm=HTMLFile('
methodAdd
', globals())
...
...
lib/python/Products/MailHost/SendMailTag.py
View file @
00d63d2a
...
...
@@ -82,8 +82,8 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__rcs_id__
=
'$Id: SendMailTag.py,v 1.
6 1999/03/22 20:39:53
brian Exp $'
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: SendMailTag.py,v 1.
7 1999/11/03 16:09:14
brian Exp $'
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
MailHost
import
MailBase
from
DocumentTemplate.DT_Util
import
*
...
...
@@ -94,13 +94,13 @@ import string
class
SendMailTag
:
'''the send mail tag, used like thus:
<
!--#sendmail someMailHostID--
>
<
dtml-sendmail someMailHostID
>
to: person@their.machine.com
from: me@mymachine.net
subject: just called to say...
boy howdy!
<
!--#/sendmail--
>
<
/dtml-sendmail
>
Text between the sendmail and /sendmail tags is processed
by the MailHost machinery and delivered. There must be at least
...
...
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