[FIX] encoding error when using special characters in pad name
bzr revid: fme@openerp.com-20110131134315-2rdjyxbp301sr7e0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user