You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/22 17:05:27 UTC

svn commit: r1668397 - /steve/trunk/pytest/www/cgi-bin/rest_admin.py

Author: humbedooh
Date: Sun Mar 22 16:05:27 2015
New Revision: 1668397

URL: http://svn.apache.org/r1668397
Log:
name conflict, d'uh..

Modified:
    steve/trunk/pytest/www/cgi-bin/rest_admin.py

Modified: steve/trunk/pytest/www/cgi-bin/rest_admin.py
URL: http://svn.apache.org/viewvc/steve/trunk/pytest/www/cgi-bin/rest_admin.py?rev=1668397&r1=1668396&r2=1668397&view=diff
==============================================================================
--- steve/trunk/pytest/www/cgi-bin/rest_admin.py (original)
+++ steve/trunk/pytest/www/cgi-bin/rest_admin.py Sun Mar 22 16:05:27 2015
@@ -105,7 +105,7 @@ else:
                                 f.write(json.dumps({
                                     'title': form.getvalue('title'),
                                     'owner': form.getvalue('owner'),
-                                    'monitors': [f.strip() for f in form.getvalue('monitors').split(",")],
+                                    'monitors': [x.strip() for x in form.getvalue('monitors').split(",")],
                                     'starts': form.getvalue('starts'),
                                     'ends': form.getvalue('ends'),
                                     'hash': hashlib.sha512("%f-stv-%s" % (time.time(), os.environ['REMOTE_ADDR'])).hexdigest(),
@@ -153,7 +153,7 @@ else:
                                         'description': form.getvalue('description'),
                                         'type': form.getvalue('type'),
                                         'candidates': candidates,
-                                        'seconds': [f.strip() for f in form.getvalue('seconds').split("\n")] if form.getvalue('seconds') else [],
+                                        'seconds': [x.strip() for x in form.getvalue('seconds').split("\n")] if form.getvalue('seconds') else [],
                                         'nominatedby': form.getvalue('nominatedby')
                                     }))
                                     f.close()
@@ -209,7 +209,7 @@ else:
                                     val = form.getvalue(field)
                                     if val:
                                         if field == "monitors":
-                                            val = [f.strip() for f in val.split(",")]
+                                            val = [x.strip() for x in val.split(",")]
                                         js[field] = val
                                 with open(elpath + "/basedata.json", "w") as f:
                                     f.write(json.dumps(js))
@@ -237,7 +237,7 @@ else:
                                             for entry in xval:
                                                 val.append({'name': entry.strip()})
                                         if field == "seconds":
-                                            val = [f.strip() for f in val.split("\n")]
+                                            val = [x.strip() for x in val.split("\n")]
                                         js[field] = val
                                 with open(issuepath + ".json", "w") as f:
                                     f.write(json.dumps(js))