Commit e9e097bb authored by Jens Vagelpohl's avatar Jens Vagelpohl

- LP #142874: Naming objects ``URL`` or ``URL1`` broke several ZMI

  views.
parent f67a8b8b
......@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- LP #142874: Naming objects ``URL`` or ``URL1`` broke several ZMI
views.
- LP #142878: Remove URL-based suppression of access rules and site root
objects. Suppression using ``os.environ`` still works.
......
......@@ -19,14 +19,14 @@ function update_menu() {
<dtml-else>
<frameset rows="34, *">
</dtml-if>
<frame src="&dtml-URL1;/manage_top_frame" name="manage_top_frame"
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_top_frame" name="manage_top_frame"
marginheight="0" scrolling="no"/>
</dtml-if>
<frameset cols="175,*">
<frame src="&dtml-URL1;/manage_menu" name="manage_menu"
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_menu" name="manage_menu"
marginwidth="2" marginheight="2" scrolling="auto"/>
<frame src="&dtml-URL1;/manage_workspace" name="manage_main"
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_workspace" name="manage_main"
marginwidth="2" marginheight="2" scrolling="auto"/>
</frameset>
......
......@@ -59,7 +59,7 @@
align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
>href="&dtml-action;"<dtml-else
>href="&dtml-URL1;"</dtml-if
>href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if
><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
>><span style="color: #000000;"><strong><dtml-var "s_item['label']"
></strong></span></a>&nbsp;</font></td>
......@@ -68,7 +68,7 @@
align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
>href="&dtml-action;"<dtml-else
>href="&dtml-URL1;"</dtml-if
>href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if
><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
>><span style="color: #000000;"><strong><dtml-var "s_item['label']"
></strong></span></a>&nbsp;</font></td>
......
......@@ -10,7 +10,7 @@ file. You may also edit the file content directly if the content is a
text type and small enough to be edited in a text area.
</p>
<form action="&dtml-URL1;" method="post" enctype="multipart/form-data">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="post" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
<td align="left" valign="top">
......
......@@ -5,12 +5,12 @@
</HEAD>
<FRAMESET ROWS="52%,*">
<dtml-if cv_ffaf>
<FRAME SRC="&dtml-URL1;/manage_findAdv" NAME="findForm"
<FRAME SRC="<dtml-var "REQUEST.URL1" html_quote>/manage_findAdv" NAME="findForm"
<dtml-else>
<FRAME SRC="&dtml-URL1;/manage_findForm" NAME="findForm"
<FRAME SRC="<dtml-var "REQUEST.URL1" html_quote>/manage_findForm" NAME="findForm"
</dtml-if>
MARGINWIDTH="2" MARGINHEIGHT="2" SCROLLING="auto">
<FRAME SRC="&dtml-URL1;/manage_findResult" NAME="findResult"
<FRAME SRC="<dtml-var "REQUEST.URL1" html_quote>/manage_findResult" NAME="findResult"
MARGINWIDTH="2" MARGINHEIGHT="0" SCROLLING="auto">
</FRAMESET>
<NOFRAMES>
......
......@@ -60,13 +60,13 @@ your search terms below.
<td width="50%">
<div class="list-item">
<dtml-in name="results" previous size="batch_size" start="query_start">
<strong> <a href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-previous-sequence-start-number;">&lt; Previous</a></strong>
<strong> <a href="<dtml-var "REQUEST.URL" html_quote>&dtml-sequence-query;query_start=&dtml-previous-sequence-start-number;">&lt; Previous</a></strong>
<dtml-else>&nbsp;</dtml-in></div>
</td>
<td align="right" width="50%">
<div class="list-item">
<dtml-in name="results" next size=batch_size start=query_start>
<strong><a href="&dtml-URL;&dtml-sequence-query;query_start=&dtml-next-sequence-start-number;">Next &gt;</a></strong>
<strong><a href="<dtml-var "REQUEST.URL" html_quote>&dtml-sequence-query;query_start=&dtml-next-sequence-start-number;">Next &gt;</a></strong>
<dtml-else>&nbsp;</dtml-in></div>
</td>
</tr>
......
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<dtml-if manage_change_history>
<form action="&dtml-URL1;" method="POST">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
......@@ -10,7 +10,7 @@
<div class="list-nav">
<dtml-if first_transaction>
<dtml-with expr="_(next=first_transaction*2-last_transaction)">
<a href="&dtml-URL;?first_transaction:int=&dtml.-next;&last_transaction:int=&dtml.-first_transaction;&HistoryBatchSize:int=&dtml.-HistoryBatchSize;">&lt; Later Revisions</a>
<a href="<dtml-var "REQUEST.URL" html_quote>?first_transaction:int=&dtml.-next;&last_transaction:int=&dtml.-first_transaction;&HistoryBatchSize:int=&dtml.-HistoryBatchSize;">&lt; Later Revisions</a>
</dtml-with>
<dtml-else>
&nbsp;
......@@ -21,7 +21,7 @@
<div class="list-nav">
<dtml-if expr="_.len(manage_change_history) == HistoryBatchSize">
<dtml-with expr="_(last=last_transaction+HistoryBatchSize)">
<a href="&dtml-URL;?first_transaction:int=&dtml.-last_transaction;&last_transaction:int=&dtml.-last;&HistoryBatchSize:int=&dtml.-HistoryBatchSize;">Earlier Revisions &gt;</a>
<a href="<dtml-var "REQUEST.URL" html_quote>?first_transaction:int=&dtml.-last_transaction;&last_transaction:int=&dtml.-last;&HistoryBatchSize:int=&dtml.-HistoryBatchSize;">Earlier Revisions &gt;</a>
</dtml-with>
<dtml-else>
&nbsp;
......
......@@ -34,10 +34,10 @@ function toggleSelect() {
<td align="left" valign="top">&nbsp;</td>
<td align="right" valign="top">
<div class="form-element">
<form action="&dtml-URL1;/" method="get">
<form action="<dtml-var "REQUEST.URL1" html_quote>/" method="get">
<dtml-if "_.len(filtered_meta_types) > 1">
<select class="form-element" name=":action"
onChange="location.href='&dtml-URL1;/'+this.options[this.selectedIndex].value">
onChange="location.href='<dtml-var "REQUEST.URL1" html_quote>/'+this.options[this.selectedIndex].value">
<option value="manage_workspace" disabled>Select type to add...</option>
<dtml-in filtered_meta_types mapping sort=name>
<dtml-if action>
......@@ -59,7 +59,7 @@ function toggleSelect() {
</table>
</dtml-if>
<form action="&dtml-URL1;/" name="objectItems" method="post">
<form action="<dtml-var "REQUEST.URL1" html_quote>/" name="objectItems" method="post">
<dtml-if objectItems>
<dtml-let hasOrderSupport="_.getattr(this().aq_explicit, 'has_order_support', 0)">
<dtml-unless skey>
......
......@@ -25,7 +25,7 @@
<dtml-var manage_tabs>
</dtml-with>
<form action="&dtml-URL1;" method="post">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="post">
<dtml-if propertyMap>
<p class="form-help">
Properties allow you to assign simple values to Zope objects. To change
......@@ -222,7 +222,7 @@ and value and click the &quot;Add&quot; button.
<dtml-if property_extensible_schema__>
<form action="&dtml-URL1;/manage_addProperty" method="post">
<form action="<dtml-var "REQUEST.URL1" html_quote>/manage_addProperty" method="post">
<p class="form-help">
To add a new property, enter a name, type and value for the new
......
......@@ -20,7 +20,7 @@
</dtml-if>
</dtml-unless>
<form action="&dtml-URL1;" method="POST">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="POST">
<dtml-if old_ids>
<p>
To change property names and values, edit them and click
......
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-URL1;" method="post">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<dtml-in items sort>
<dtml-with "_(REQUEST=REQUEST, item=_['sequence-item'].aq_base, isDeletable=isDeletable)" only>
......
......@@ -7,7 +7,7 @@
)">
<dtml-if expr="REQUEST.has_key('ids')">
<form action="&dtml-URL1;" method="post">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="post">
<table border="0">
<dtml-in expr="manage_CopyContainerAllItems(REQUEST)">
<tr>
......
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