3
0
Fork 0

Compare commits

..

No commits in common. "d6a4c5e65783724a52a825c030516e3c7801c192" and "e5ab17f2f299a612a33c5a75267c6cc552c2d67c" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View file

@ -853,7 +853,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
"""
if tools and isinstance(tools, list):
if not any(isinstance(t, (tuple, list)) for t in tools):
tools = [(self.app.make_true_uuid().hex, t) for t in tools]
tools = [(self.app.make_uuid(), t) for t in tools]
self.tools = OrderedDict(tools or [])
def add_tool(self, html, key=None):
@ -869,7 +869,7 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
See also :meth:`set_tools()`.
"""
if not key:
key = self.app.make_true_uuid().hex
key = self.app.make_uuid()
self.tools[key] = html
##############################

View file

@ -90,7 +90,6 @@ class UserView(MasterView): # pylint: disable=abstract-method
# never show these
g.remove("person_uuid", "role_refs", "password")
g.remove_filter("password")
# username
g.set_link("username")