Commit 49384776 authored by Jens Vagelpohl's avatar Jens Vagelpohl

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

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