List with special characters are handled properly

This commit is contained in:
2015-08-10 09:26:07 -05:00
parent bad468560a
commit 100f483a86
3 changed files with 4 additions and 4 deletions

View File

@@ -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"])