plone一些基本技巧,debug,extend

plone一些基本技巧,debug,extend

1.基于虚拟环境的安装

   下载linux版本的plone

   ./install.sh --target=/home/ziilion/workspace/myplone/Plone --instance=yx --with-python=/home/ziilion/workspace/myplone/virtualenv/bin/python2.7 --password=123456 --static-lxml=yes  standalone

2.debug

如果以bin/instance fg运行,则可以动态读取pt和js文件的改变

请注意plone的开发模式是不会重新加载 .py 或者 .zcml 。 如果想要重新加载,请使用 sauna.reload 扩展包.

http://developer.plone.org/getstarted/debug_mode.html  debug模式的开发

 

Development mode restarts

Plone must be started in the development mode using bin/instance fg command. Then

  • Javascript files are in debug mode and automatically loaded when you hit refresh
  • CSS files are in debug mode and automatically loaded when you hit refresh
  • TAL page templates (.pt files) are automatically reloaded on every request
  • GenericSetup XML files are reloaded

 

3.zopeskel的安装,用于生成扩展plone的工具, 注意里面的buildout命令都用bin/buildout

http://developer.plone.org/getstarted/paste.html

 

4.一个扩展plone的例子

http://developer.plone.org/reference_manuals/active/helloworld/extend/index.html

 

5.javascript和css的加载

http://developer.plone.org/templates_css_and_javascripts/index.html

 

 

 


分享到: 微信 更多