Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 5814:bd6d41f21a5a
More extensive EditCSV testing.
Uses test object to cover all types defined by database.
Also check for an error with a row that's too short.
CSV starts with blank line to verify that it recognises header line.
Changes password, date, int, link and other fields.
Deletes row and verified that it is retired.
Make actions.py properly handle emptying of password field.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 14 Jun 2019 21:26:19 -0400 |
| parents | 1a835db41674 |
| children | 883c9e90b403 |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Wed Jun 12 22:13:00 2019 -0400 +++ b/roundup/cgi/actions.py Fri Jun 14 21:26:19 2019 -0400 @@ -558,6 +558,9 @@ # nuke the existing value if isinstance(prop, hyperdb.Multilink): d[name] = [] + elif isinstance(prop, hyperdb.Password): + # create empty password entry + d[name] = password.Password("", config=self.db.config) else: d[name] = None
