diff --git a/bot_modules/users.py b/bot_modules/users.py index ba92907..5ae44e5 100644 --- a/bot_modules/users.py +++ b/bot_modules/users.py @@ -133,6 +133,17 @@ class ModuleUsers(mod_table_operate.TableOperateModule): def GetName(self): return module_name + def GetButtonNameAndKeyValueAndAccess(self, a_Item): + key_name_id = self.GetKeyFieldID() + name_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.NAME) + access_field_id = self.m_Table.GetFieldIDByDestiny(bd_table.TableFieldDestiny.ACCESS) + assert key_name_id != None + assert name_field_id != None + assert access_field_id != None + return \ + a_Item[name_field_id] + '(' + str(a_Item[key_name_id]) + ')',\ + a_Item[key_name_id],\ + a_Item[access_field_id] # Работа с базой данных пользователей