diff roundup/rest.py @ 6559:178705fbeaa8

Change _ = to _discard = as _ is the translation service global Apparently I can't read: from roundup.i18n import _ gah.
author John Rouillard <rouilj@ieee.org>
date Mon, 13 Dec 2021 19:57:50 -0500
parents 576d630fc908
children 01a5dd90286e
line wrap: on
line diff
--- a/roundup/rest.py	Mon Dec 13 18:14:05 2021 -0500
+++ b/roundup/rest.py	Mon Dec 13 19:57:50 2021 -0500
@@ -851,7 +851,9 @@
                     raise UsageError("Field %s is not valid for %s class." %
                                      (p, class_name))
                 # Call this for the side effect of validating the key
-                _ = self.transitive_props(class_name, [ key ])
+                # use _discard as _ is apparently a global for the translation
+                # service.
+                _discard = self.transitive_props(class_name, [ key ])
                 # We drop properties without search permission silently
                 # This reflects the current behavior of other roundup
                 # interfaces

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