From 1638de5295b316ebff0c39d0ce9766cc8f1b1427 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 12 Aug 2011 11:30:45 +0530 Subject: [PATCH] profile.py: codec --- cgi-bin/webnotes/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/profile.py b/cgi-bin/webnotes/profile.py index 72b5901c42..1c4ac13f01 100644 --- a/cgi-bin/webnotes/profile.py +++ b/cgi-bin/webnotes/profile.py @@ -182,7 +182,7 @@ class Profile: child_tables = [t[0] for t in conn.sql('select name from tabDocType where istable = 1')] if not (dt in ['Print Format', 'Start Page', 'Event', 'ToDo Item', 'Search Criteria']) and not webnotes.is_testing and not (dt in child_tables): - r = cstr(webnotes.conn.sql("select recent_documents from tabProfile where name=%s", self.name)[0][0] or '') + r = webnotes.conn.sql("select recent_documents from tabProfile where name=%s", self.name)[0][0] or '' new_str = dt+'~~~'+dn + '\n' if new_str in r: r = r.replace(new_str, '')