上一页 1 ··· 4 5 6 7 8 9 下一页

2017年1月1日

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

2016年12月31日

摘要: 不得不说导演还是很成功的,看到一半的时候心情居然跟麦克.科里昂一样的糟;同时感到无比的纠结; 后面的暂时不看了,但是猜一下发展思路 迈克说良知已死,说你这个小子会吃苦头的 迈克是真正心底良善的,不过倔强,玩世不恭,当然非常NB的那种 如果不是良善的,就不会被连降四级 手榴弹不是他扔的,他是救人的,他 阅读全文
posted @ 2016-12-31 06:40 i元亨利贞 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页