comparison roundup/cgi/client.py @ 8502:dfecb240bc34

chore: ruff whitespace fixes.
author John Rouillard <rouilj@ieee.org>
date Mon, 22 Dec 2025 01:14:14 -0500
parents b03160d46e9d
children 299edbd03ddf
comparison
equal deleted inserted replaced
8501:b99c40b40f18 8502:dfecb240bc34
103 msg = html_escape(msg, quote=False).replace('\n', '<br />\n') 103 msg = html_escape(msg, quote=False).replace('\n', '<br />\n')
104 else: 104 else:
105 msg = msg.replace('\n', '<br />\n') 105 msg = msg.replace('\n', '<br />\n')
106 msg_list.append(msg) 106 msg_list.append(msg)
107 return msg_list # for unittests 107 return msg_list # for unittests
108
108 109
109 # if set to False via interfaces.py do not log a warning when 110 # if set to False via interfaces.py do not log a warning when
110 # xmlrpc is used and defusedxml is not installed. 111 # xmlrpc is used and defusedxml is not installed.
111 WARN_FOR_MISSING_DEFUSEDXML = True 112 WARN_FOR_MISSING_DEFUSEDXML = True
112 113
1936 def reauth(self, exception): 1937 def reauth(self, exception):
1937 """Processing for a Reauth exception raised from an auditor. 1938 """Processing for a Reauth exception raised from an auditor.
1938 1939
1939 Can be overridden by code in tracker's interfaces.py. 1940 Can be overridden by code in tracker's interfaces.py.
1940 """ 1941 """
1941 1942
1942 from roundup.anypy.cgi_ import MiniFieldStorage 1943 from roundup.anypy.cgi_ import MiniFieldStorage
1943 1944
1944 original_action = self.form['@action'].value if '@action' \ 1945 original_action = self.form['@action'].value if '@action' \
1945 in self.form else "" 1946 in self.form else ""
1946 original_template = self.template 1947 original_template = self.template
1947 1948
1948 self.template = 'reauth' 1949 self.template = 'reauth'
1949 self.form.list = [ x for x in self.form.list 1950 self.form.list = [x for x in self.form.list
1950 if x.name not in ('@action', 1951 if x.name not in ('@action',
1951 '@csrf', 1952 '@csrf',
1952 '@template' 1953 '@template'
1953 )] 1954 )]
1954 1955
1955 # save the action and template used when the Reauth as 1956 # save the action and template used when the Reauth as
1956 # triggered. Will be used to resolve the change by the reauth 1957 # triggered. Will be used to resolve the change by the reauth
1957 # action when when reauth password verified. 1958 # action when when reauth password verified.
1958 if '@next_action' not in self.form.list: 1959 if '@next_action' not in self.form.list:

Roundup Issue Tracker: http://roundup-tracker.org/