[Patch] problem with cyrillic (or other unicode symbols in question)
|Reported by:||anonymous||Owned by:||rjollos|
I'm install this plugin on my trac, but I have problem with cyrillic only symbols questions, I can't add more then one poll with error on next poll "Stored poll is not the same as this one.", all polls was saved in one file, named ".poll"
this patch fix the problem
Index: pollmacro/0.11/tracpoll/tracpoll.py =================================================================== --- pollmacro/0.11/tracpoll/tracpoll.py (revision 5516) +++ pollmacro/0.11/tracpoll/tracpoll.py (working copy) @@ -15,7 +15,7 @@ self.vote_defs = vote_defs self.title = title # Perhaps the Wiki page name should be included? - self.key = ''.join(re.findall(r'(\w+)', title)).lower() + self.key = ''.join(re.findall(r'(\w+)', title ,re.UNICODE)).lower() self.store = os.path.join(base_dir, self.key + '.poll') self.load()
please incude this in your project. Thank you.
Change History (4)
comment:2 Changed 5 years ago by rjollos
- Summary changed from problems with cyrillic (or other unicode symbols in question) to [Patch] problem with cyrillic (or other unicode symbols in question)