In order to integrate STAF with buildbot, you need a function that parses the result. One odd thing is it doesn’t matter how many test cases fail in a STAX task, it always shows “NORMAL” in STAF result as long as the syntax is okay. So the failed test case number is only thing that [...]
Archives for posts tagged ‘python’
在Google App Engine SDK里运行web2py
March 2, 2010
论坛上所有人都在感叹,web2py对GAE的支持太他妈好了,搞得我也心痒痒的,今天试了一下,首先看到web2py包里有个app.yaml,还一阵小鸡冻,结果接下来怎么也整不起来。运行倒是可以,就是在浏览器里访问不了。加上我主机所在地inmotionhosting的mod_python有点问题,搞得很郁闷。搜索了一下午终于发现一个傻子小弟和我遇到问题一样,然后web2py的作者Massimo Di Pierro(总觉得这哥们是机器人,一天24小时不带睡觉回答问题,网上到处都有他的影子。然后还不停的更新web2py文档和程序,佩服,肯定没有女朋友:P)问他用的是不是Python2.6,原来GAE只能用2.5。我靠,顿时茅厕顿开!立马拖了一个Python2.5下来,在dev_appserver.py里第一行加上2.5,一跑,成了。web2py真实太伟大了。
打开web2py的远程访问
January 21, 2010
今天想把这个搞定,突然发现中文资料少的可怜,所有的文章都是“转载”于一个人,无非就是用Putty里的ssh隧道功能。其实人家说了,必须开https才能远程访问。 运行python web2py.py –help,参数表中关于ssl的有: -c SSL_CERTIFICATE, –ssl_certificate=SSL_CERTIFICATE file that contains ssl certificate -k SSL_PRIVATE_KEY, –ssl_private_key=SSL_PRIVATE_KEY file that contains ssl private key 看来只要有证书就可以打开ssl连接,参考这篇文章。如果没有其他服务要用这个证书的话,完全可以放在web2py目录里。执行以下命令: $openssl genrsa -des3 -out server.key 1024 然后输入密码产生一个server.key文件 $ openssl req -new -key server.key -out server.csr 接下来输入一些问题,产生证书,然后就该签名了 openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt 期间要输入你以前输入的密码。 到这里你就生成了密钥和证书,只要在web2py里把他们载入就可以了。 python web2.py – -ip=xxx.xxx.xxx.xxx [...]
