fix: temporarily avoid make_uuid()
and disambiguate our code in the meantime
This commit is contained in:
parent
9d23706909
commit
d6a4c5e657
1 changed files with 2 additions and 2 deletions
|
|
@ -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_uuid(), t) for t in tools]
|
||||
tools = [(self.app.make_true_uuid().hex, 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_uuid()
|
||||
key = self.app.make_true_uuid().hex
|
||||
self.tools[key] = html
|
||||
|
||||
##############################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue