摘要:
先把代码贴过来 at last o.run(args) 其中,command=‘server’ 在python运行时探测得知 commands的内容是 也就是说server 代表的是<class 'odoo.cli.server.Server'> by the way args is ”-w odo 阅读全文
2017年1月1日
摘要:
接上回,odoo-bin中调用了odoo.cli.main(),去哪儿找? cli目录容易找 跟随__init__.py的脚步 see line 7 我们发现程序从command中引入了command类?和main函数 then goto command.py 搜索 main() 我们发现 我想就是 阅读全文
摘要:
unresolved refrence 'execfile'…… 字面意思是execfile这个东东没有被解析 难道是没有import相应的lib? python docs 3.x: Removes usage of execfile(). The argument to execfile() is 阅读全文
摘要:
ODOO 源代码安装要求 ref:http://www.odoo.com/documentation/10.0/setup/install.html#setup-install-source python 版本是2.7.9 【 Note if Python is already installed, 阅读全文
摘要:
python是一个解释器 利用pip安装python插件的时候,观察到python的运作方式是逐步解释执行的 适合作为高级调度语言; 异常的处理以及效率应该是主要的问题 阅读全文
摘要:
使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 : Running setup.py install for gevent building 'geve 阅读全文
摘要:
python中的if __name__ == '__main__' what hell is it? python认为一切模块都可能被执行或者被import 如果一个模块是被import导入的,那么该模块的调用者可能仅仅希望使用模块的部分代码,而不是直接运行它 如果模块是直接运行的,那么像c或者ja 阅读全文
摘要:
当pip install不能正确安装的时候,try easy_install 重复试了几次pip install -r requirements.txt,都在安装pillow的时候失败了,想找这个枕头真的不容易 easy_install Pillow==3.4.1 非常顺利 然而, TODO:eas 阅读全文
摘要:
Windows下ODOO源码启动: 暂时忽略line 2 该代码做了两件事 导入ODOO模块 运行odoo.cli.main() 然而:odoo.cli.main()在哪里?see http://www.cnblogs.com/qianheng/p/6240739.html 阅读全文