The previous "hack" solves the issue with attachments, but now when I enter any 
special character ('ç' or 'ã') on any form these characters are not correctly 
recognised, after I save form.

I think the issue is about python's string module:
attachments names are randomly generated: document.py's random_name function.

On Linux string.letters returns 52 characters, tha same as 'string.ascii_letters
On windows XP string.letters returns 125 characters - lots of none ascii chars. 
that are the source of the erros I get.

So if instead of string.letters we have string.ascii_letters we'll get the same 
behaviour on windows and on Linux.


def random_name():
    random.seed()
    d = [random.choice(string.ascii_letters) for x in 
xrange(10) ]
    name = "".join(d)
    return name





-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=32019#32019

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to