Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 6238:6834bb5473da
Summary: Constrain format of classname and document
Define the format of a valid classname. Updated design doc, function
doc and glossary to document format.
Error message for case where we have a redefinition of a classname now
says why ValueError is raised since we are raising ValueError for
incorrect classname format as well.
Tests for all cases including verification of cause for ValueError
exceptions.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 28 Jul 2020 06:24:39 -0400 |
| parents | 2492e2e17371 |
| children | 1e5ed659e8ca 6a6b4651be1f |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Tue Jul 28 05:51:00 2020 -0400 +++ b/roundup/backends/rdbms_common.py Tue Jul 28 06:24:39 2020 -0400 @@ -847,7 +847,7 @@ """ cn = cl.classname if cn in self.classes: - raise ValueError(cn) + raise ValueError(_('Class "%s" already defined.'%cn)) self.classes[cn] = cl # add default Edit and View permissions
