Commit f7ce9f48 authored by Jim Fulton's avatar Jim Fulton

Changed PARENT_URL to URL1.

parent 4957ab92
......@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__='$Revision: 1.67 $'[11:-2]
__version__='$Revision: 1.68 $'[11:-2]
import Globals, App.Undo, socket, regex
from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping
......@@ -676,7 +676,7 @@ def manage_addUserFolder(self,dtself=None,REQUEST=None,**ignored):
except: return MessageDialog(
title ='Item Exists',
message='This object already contains a User Folder',
action ='%s/manage_main' % REQUEST['PARENT_URL'])
action ='%s/manage_main' % REQUEST['URL1'])
self.__allow_groups__=self.acl_users
if REQUEST: return self.manage_main(self,REQUEST,update_menu=1)
......
......@@ -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
......@@ -222,14 +222,14 @@ class HTML(DT_String.String):
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
......@@ -268,7 +268,7 @@ class HTMLFile(FileMixin, HTML):
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,
......@@ -280,7 +280,7 @@ class HTMLFile(FileMixin, HTML):
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,
)
......
......@@ -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
......@@ -108,7 +108,7 @@ HTML._manage_editForm = HTML(
<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>
......@@ -130,10 +130,10 @@ HTML._manage_editForm = HTML(
<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>
......
......@@ -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
......@@ -360,7 +360,7 @@ 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>
......@@ -368,10 +368,10 @@ def test5():
<!--#/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-->
......@@ -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
......
......@@ -84,8 +84,8 @@
##############################################################################
__doc__='''Shared classes and functions
$Id: Aqueduct.py,v 1.31 1999/03/10 00:15:44 klm Exp $'''
__version__='$Revision: 1.31 $'[11:-2]
$Id: Aqueduct.py,v 1.32 1999/03/22 23:20:16 jim Exp $'''
__version__='$Revision: 1.32 $'[11:-2]
import Globals, os
from Globals import HTMLFile, Persistent
......@@ -178,9 +178,9 @@ class Searchable(BaseQuery):
report=HTML(custom_default_report(self.id, result))
return apply(report,(self,REQUEST),{self.id:result})
def index_html(self, PARENT_URL):
def index_html(self, URL1):
" "
raise 'Redirect', ("%s/manage_testForm" % PARENT_URL)
raise 'Redirect', ("%s/manage_testForm" % URL1)
class Composite:
......
......@@ -85,8 +85,8 @@
__doc__='''Generic Database adapter
$Id: DA.py,v 1.63 1999/03/10 00:15:44 klm Exp $'''
__version__='$Revision: 1.63 $'[11:-2]
$Id: DA.py,v 1.64 1999/03/22 23:20:29 jim Exp $'''
__version__='$Revision: 1.64 $'[11:-2]
import OFS.SimpleItem, Aqueduct, RDB
import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os
......@@ -309,9 +309,9 @@ class DA(
finally: tb=None
def index_html(self, PARENT_URL):
def index_html(self, URL1):
" "
raise 'Redirect', ("%s/manage_testForm" % PARENT_URL)
raise 'Redirect', ("%s/manage_testForm" % URL1)
def _searchable_arguments(self): return self._arg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment