mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-02-18 07:11:09 -06:00
List with special characters are handled properly
This commit is contained in:
parent
bad468560a
commit
100f483a86
@ -27,7 +27,7 @@ class listsController(object):
|
||||
name = dialog.get("name")
|
||||
description = dialog.get("description")
|
||||
p = dialog.get("public")
|
||||
if public == True:
|
||||
if p == True:
|
||||
mode = "public"
|
||||
else:
|
||||
mode = "private"
|
||||
@ -73,4 +73,4 @@ class listsController(object):
|
||||
def open_list_as_buffer(self, *args, **kwargs):
|
||||
if self.dialog.lista.get_count() == 0: return
|
||||
list = self.session.db["lists"][self.dialog.get_item()]
|
||||
pub.sendMessage("create-new-buffer", buffer="list", account=self.session.db["user_name"], create=list["slug"])
|
||||
pub.sendMessage("create-new-buffer", buffer="list", account=self.session.db["user_name"], create=list["name"])
|
@ -367,7 +367,7 @@ class Controller(object):
|
||||
def set_buffer_positions(self,session):
|
||||
"Sets positions for buffers if values exist in the database."
|
||||
for i in self.buffers:
|
||||
if str(i.name+"_pos") in session.db and hasattr(i.buffer,'list'):
|
||||
if i.name+"_pos" in session.db and hasattr(i.buffer,'list'):
|
||||
i.buffer.list.select_item(session.db[str(i.name+"_pos")])
|
||||
|
||||
def logout_account(self, session_id):
|
||||
|
@ -32,7 +32,7 @@ def find_item(id, listItem):
|
||||
|
||||
def find_list(name, lists):
|
||||
for i in range(0, len(lists)):
|
||||
if lists[i]["slug"] == name: return lists[i]["id"]
|
||||
if lists[i]["name"] == name: return lists[i]["id"]
|
||||
|
||||
def find_previous_reply(id, listItem):
|
||||
for i in range(0, len(listItem)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user