XP 安装openerp-allinone后打不开
-
-
修改 \addons\auth_openid\controllers\main.py 文件
大约47行左右的 get_system_user() 定义
修改为<br />def get_system_user():<br /> """Return system user info string, such as USERNAME-EUID"""<br /> info = getpass.getuser()<br /> euid = getattr(os, 'geteuid', None) # Non available on some platforms<br /> if euid is not None:<br /> info = '%s-%d' % (info, euid())<br /> return info<br /><br />#修改为<br />def get_system_user():<br /> """Return system user info string, such as USERNAME-EUID"""<br /> info = None<br /> try:<br /> info = getpass.getuser()<br /> except:<br /> pass<br /> euid = getattr(os, 'geteuid', None) # Non available on some platforms<br /> if euid is not None:<br /> info = '%s-%d' % (info, euid())<br /> return info<br /><br />