Skip to content

Commit

Permalink
Changed PARENT_URL to URL1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Mar 22, 1999
1 parent a02d6f3 commit 1e51713
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions DT_HTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
##############################################################################
"""HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.16 1999/03/18 15:07:03 brian Exp $"""
$Id: DT_HTML.py,v 1.17 1999/03/22 23:18:56 jim Exp $"""

from DT_String import String, FileMixin
import DT_String, regex
Expand Down Expand Up @@ -222,14 +222,14 @@ def management_interface(self):
everything else private.'''
return self

def manage_editForm(self, PARENT_URL, REQUEST):
def manage_editForm(self, URL1, REQUEST):
'''Display doc template editing form''' #"

return self._manage_editForm(
self,
mapping=REQUEST,
__str__=str(self),
PARENT_URL=PARENT_URL
URL1=URL1
)

manage_editDocument=manage=manage_editForm
Expand Down Expand Up @@ -268,7 +268,7 @@ def manage_default(self, REQUEST=None):
self.cooked=self.cook()
if REQUEST: return self.editConfirmation(self,REQUEST)

def manage_editForm(self, PARENT_URL, REQUEST):
def manage_editForm(self, URL1, REQUEST):
'''Display doc template editing form'''

return self._manage_editForm(mapping=REQUEST,
Expand All @@ -280,7 +280,7 @@ def manage_editForm(self, PARENT_URL, REQUEST):
self.document_template_form_header,
document_template_edit_footer=
self.document_template_edit_footer,
PARENT_URL=PARENT_URL,
URL1=URL1,
__str__=str(self),
FactoryDefaultString=FactoryDefaultString,
)
Expand Down
12 changes: 6 additions & 6 deletions DT_UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
##############################################################################
__doc__='''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.9 1999/03/10 00:15:07 klm Exp $'''
__version__='$Revision: 1.9 $'[11:-2]
$Id: DT_UI.py,v 1.10 1999/03/22 23:19:21 jim Exp $'''
__version__='$Revision: 1.10 $'[11:-2]

from DT_HTML import HTML

Expand All @@ -108,7 +108,7 @@
<BODY bgcolor="#FFFFFF">
<!--#var document_template_edit_header-->
<FORM name="editform" ACTION="<!--#var PARENT_URL-->/manage_edit" METHOD="POST">
<FORM name="editform" ACTION="<!--#var URL1-->/manage_edit" METHOD="POST">
<!--#var document_template_form_header-->
Document template source:
<center>
Expand All @@ -130,10 +130,10 @@
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
VALUE="<!--#var HTTP_REFERER-->">
<!--#else HTTP_REFERER-->
<!--#if PARENT_URL-->
<!--#if URL1-->
<INPUT NAME="CANCEL_ACTION" TYPE="HIDDEN"
VALUE="<!--#var PARENT_URL-->">
<!--#/if PARENT_URL-->
VALUE="<!--#var URL1-->">
<!--#/if URL1-->
<!--#/if HTTP_REFERER-->
</center>
</FORM>
Expand Down
12 changes: 6 additions & 6 deletions DTtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"""Document Template Tests
"""

__rcs_id__='$Id: DTtest.py,v 1.11 1999/03/10 00:15:08 klm Exp $'
__version__='$Revision: 1.11 $'[11:-2]
__rcs_id__='$Id: DTtest.py,v 1.12 1999/03/22 23:19:42 jim Exp $'
__version__='$Revision: 1.12 $'[11:-2]

from DocumentTemplate import *
import sys
Expand Down Expand Up @@ -360,18 +360,18 @@ def test5():
Select an affiliate to visit:<br>
<UL>
<!--#in affiliates-->
<LI><A HREF="<!--#var PARENT_URL-->/<!--#var ID-->/">
<LI><A HREF="<!--#var URL1-->/<!--#var ID-->/">
<!--#var name--></A></LI>
<!--#/in affiliates-->
</UL>
<!--#/if affiliates-->
<p>
<A HREF="<!--#var PARENT_URL-->/add_affiliate_form">Add an affiliate</A>
<A HREF="<!--#var URL1-->/add_affiliate_form">Add an affiliate</A>
<!--#if affiliates-->
* <A HREF="<!--#var PARENT_URL-->/delete_affiliates_form">
* <A HREF="<!--#var URL1-->/delete_affiliates_form">
Delete affiliates</A>
<!--#/if affiliates-->
Expand All @@ -381,7 +381,7 @@ def test5():
</html>''')

print html(affiliates=[], PARENT_URL='www')
print html(affiliates=[], URL1='www')

def test6():
def d(**kw): return kw
Expand Down

0 comments on commit 1e51713

Please sign in to comment.