Skip to content

Commit a15342f

Browse files
committed
Replace X.has_key('y') with x in y
Make it python3 compatible.
1 parent 29a856d commit a15342f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

website/issues/html/_generic.help-submit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
44
<meta http-equiv="Content-Type"
55
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
6-
<tal:block tal:condition="python:request.form.has_key('property')">
6+
<tal:block tal:condition="python:'property' in request.form">
77
<title>Generic submit page for framed helper windows</title>
88
<script language="Javascript" type="text/javascript"
99
tal:content="structure string:<!--

website/issues/html/_generic.help.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
55
<meta http-equiv="Content-Type"
66
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
7-
<tal:block tal:condition="python:request.form.has_key('property')">
7+
<tal:block tal:condition="python:'property' in request.form">
88
<tal:block tal:define="property request/form/property/value">
99
<title i18n:translate=""><tal:x i18n:name="property"
1010
tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker"
@@ -27,7 +27,7 @@ <h1 id="logoheader">
2727
<div id="content-body">
2828
<div id="content">
2929
<div id="breadcrumb">Python Issue Tracker: Help - <tal:block tal:content="context/classname">item</tal:block></div>
30-
<tal:block tal:condition="python:request.form.has_key('property')">
30+
<tal:block tal:condition="python:'property' in request.form">
3131
<form name="frm_help" action="#"
3232
tal:define="batch request/batch;
3333
props python:request.form['properties'].value.split(',')">
@@ -104,7 +104,7 @@ <h1 id="logoheader">
104104

105105
</form>
106106
</tal:block>
107-
<tal:block tal:condition="python:not request.form.has_key('property')">
107+
<tal:block tal:condition="python:'property' not in request.form">
108108
<tal:block tal:define="batch request/batch;
109109
props python:request.form['properties'].value.split(',')">
110110
<table width="100%">

website/issues/html/file.item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<input type="hidden" name="@template" value="item">
4040
<input type="hidden" name="@required" value="name,type">
4141
<input type="hidden" name="@multilink"
42-
tal:condition="python:request.form.has_key('@multilink')"
42+
tal:condition="python:'@multilink' in request.form"
4343
tal:attributes="value request/form/@multilink/value">
4444
</td>
4545
<td tal:content="structure context/submit">submit button here</td>

website/issues/html/user.forgotten.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
i18n:translate="">Password reset request</span>
66
<td class="content" metal:fill-slot="content">
77

8-
<tal:askforinfo tal:condition="python:options['error_message'] or not request.form.has_key('@action')">
8+
<tal:askforinfo tal:condition="python:options['error_message'] or
9+
'@action' not in request.form">
910

1011
<p i18n:translate="">You have two options if you have forgotten your password.
1112
If you know the email address you registered with, enter it below.</p>

website/issues/html/user.help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
99
<meta http-equiv="Content-Type"
1010
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
11-
<tal:block tal:condition="python:request.form.has_key('property')">
11+
<tal:block tal:condition="python:'property' in request.form">
1212
<title><tal:x i18n:translate=""><tal:x i18n:name="property"
1313
tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker"
1414
tal:replace="config/TRACKER_NAME" /></tal:x></title>

0 commit comments

Comments
 (0)