开发者

Pylons: question about websetup.py use

开发者 https://www.devze.com 2022-12-27 21:57 出处:网络
reading pylons documentations I did understand that websetup:setup_app is only called when the application is setup at first time by paster script. But, I found now, setup_app is call every time that

reading pylons documentations I did understand that websetup:setup_app is only called when the application is setup at first time by paster script. But, I found now, setup_app is call every time that application starts. Debugging the code, this behaviour seems right because in appinstall.setup_config the module is loaded (as PRJ.websetup) and as it have 开发者_JAVA百科the setup_app attribute, the function is called.

Can you point me in the right direction?


Ok, I was wrong. The websetup is used by the setup script and before the test are executed.

A controller make an import for a test module, and then setup_app is called.

Thanks!.

0

精彩评论

暂无评论...
验证码 换一张
取 消