Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 7030:bb3845cf6b8e
flake8 E225 missing whitespace around operator
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 09 Oct 2022 17:58:53 -0400 |
| parents | 0409659241c5 |
| children | 0c99d1d0254a |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Sun Oct 09 17:55:25 2022 -0400 +++ b/roundup/cgi/templating.py Sun Oct 09 17:58:53 2022 -0400 @@ -215,7 +215,7 @@ by the csrf validator that runs in the client::inner_main module/function. ''' - otks=client.db.getOTKManager() + otks = client.db.getOTKManager() key = otks.getUniqueKey() # lifetime is in minutes. if lifetime is None: @@ -623,10 +623,10 @@ html_version = self._client.instance.config.HTML_VERSION if html_version == 'xhtml': self.input = input_xhtml - self.cgi_escape_attrs=xhtml_cgi_escape_attrs + self.cgi_escape_attrs = xhtml_cgi_escape_attrs else: self.input = input_html4 - self.cgi_escape_attrs=html4_cgi_escape_attrs + self.cgi_escape_attrs = html4_cgi_escape_attrs # self._context is used for translations. # will be initialized by the first call to .gettext() self._context = None @@ -773,8 +773,8 @@ search. """ l = [] - canSearch=self._db.security.hasSearchPermission - userid=self._client.userid + canSearch = self._db.security.hasSearchPermission + userid = self._client.userid for name, prop in self._props.items(): if cansearch and \ not canSearch(userid, self._classname, name): @@ -921,7 +921,7 @@ if form: form = '&form=%s'%form if inputtype: - type= '&type=%s'%inputtype + type = '&type=%s'%inputtype if filter: filterprops = filter.split(';') filtervalues = [] @@ -1688,7 +1688,7 @@ id = match.group('id') fragment = match.group('fragment') if fragment is None: - fragment="" + fragment = "" try: # make sure cls is a valid tracker classname cl = self._db.getclass(cls) @@ -2119,7 +2119,7 @@ y_rb = self.input(type="radio", name=self._formname, value="yes", checked="checked", id="%s_%s"%(self._formname, 'yes'), **kwargs) - n_rb =self.input(type="radio", name=self._formname, value="no", + n_rb = self.input(type="radio", name=self._formname, value="no", id="%s_%s"%(self._formname, 'no'), **kwargs) else: y_rb = self.input(type="radio", name=self._formname, value="yes", @@ -2136,12 +2136,12 @@ else: # don't generate a trivalue radiobutton. u_label = '' - u_rb='' + u_rb = '' if (labelfirst): s = u_label + u_rb + y_label + y_rb + n_label + n_rb else: - s = u_label + u_rb +y_rb + y_label + n_rb + n_label + s = u_label + u_rb + y_rb + y_label + n_rb + n_label return s @@ -2578,7 +2578,7 @@ # figure if this option is selected s = '' # record the marker for the selected item if requested - selected_mark='' + selected_mark = '' if value in [optionid, option]: s = 'selected="selected" ' @@ -2768,7 +2768,7 @@ value = self._value[:] # map the id to the label property if not linkcl.getkey(): - showid=1 + showid = 1 if not showid: k = linkcl.labelprop(1) value = lookupKeys(linkcl, k, value)
