def convert_quicklinks(string): """ Convert quicklinks from pre patch-332 to new format """ # No need to convert new style list if '\t' in string: return string names = [name.strip() for name in string.split(',')] names = [wikiutil.unquoteWikiname(name) for name in names if name != ''] string = user.encodeList(names) return string
def convert_subscribed_pages(string): """ Convert subscribed pages from pre patch-332 to new format """ # No need to convert new style list if '\t' in string: return string # This might break pages that contain ',' in the name, we can't do # anything about it. This was the reason we changed the format. names = [name.strip() for name in string.split(',')] string = user.encodeList(names) return string