[FIX] encoding error when using special characters in pad name

bzr revid: fme@openerp.com-20110131134315-2rdjyxbp301sr7e0
This commit is contained in:
Fabien Meghazi
2011-01-31 14:43:15 +01:00
parent 46058019cd
commit a3d64bb1e6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
{
'name': 'Enhanced support for (Ether)Pad attachments',
'version': '1.0',
'version': '1.0.1',
'category': 'Generic Modules/Others',
'description': """
Adds enhanced support for (Ether)Pad attachments in the web client, lets the
+1
View File
@@ -26,6 +26,7 @@ class Piratepad(openerp.controllers.SecuredController):
default_res_model=params.model, default_res_id=params.id,
active_id=False, active_ids=[])
pad_name = pad_name.decode('utf8')
pad_link = self.make_url(pad_name)
attachment_id = rpc.RPCProxy('ir.attachment').create({
'name': pad_name,