学习Python,Zope,Plone中,在这里我会以一些学习笔记和备忘录的形式记录我在学习中遇到的问题以及解决过程。
今天公司培训ISO9001了
主要就记住了一个"QDCA"和"人机料法环".
听起来挺不错的.
如何自我催眠?(转载)
7个imemm邀请
The Definitive Guide to Plone eBook
发现CHM格式的《The Definitive Guide to Plone eBook》(英文版),提供下载:
http://www.zzstjj.cn/dgj/Apress.The.Definitive.Guide.to.Plone.eBook-LiB.chm
在线阅读(英文版):http://docs.neuroinf.de/PloneBook/
在中文Zope用户组里有一个正在翻译的《新Plone宝典》对应也是这本书。
整整一周没有写Blog了
有趣的,有用的,Python写的:Webnote
使用Apache做为Zope前端的几种方法
第一种方法:
ProxyPass /zope http://localhost:8080/
ProxyPassReverse /zope http://localhost:8080/
详见Zope上anser的文章:Using Apache with ZServer (NOT Zope.cgi)
这种方法应该是比较老的解决方案了,我大概试了一下,好象有问题,没有再仔细研究.
第二种方法:
使用CGI模式和ZOPE结合,详见Zope网站jec的文章:Zope/Apache Virtual Host
第三中方法:
<VirtualHost zope2.mysite.com:80>
ServerName www.mysite.com
RewriteEngine On
RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1 [L,P]
</VirtualHost>
Plone:限制目录下能添加的类型
| allowed = ('Document','News Item','Image') types = context.sortObjects( context.allowedContentTypes() ) return [t for t in types if t.getId() in allowed] |
| # Get list of content types allowed in objects of context's type by default types = context.sortObjects( context.allowedContentTypes() ) # Got addable prop? short circuit if so... filterIn = context.getProperty('only_addable_types',None) if filterIn: return [ ctype for ctype in types if ctype.getId() in filterIn ] # Filter (in standard way) through getNotAddableTypes. The custom # implementation checks the not_addable property. filterOut = context.getNotAddableTypes() return [ ctype for ctype in types if ctype.getId() not in filterOut ] |
CSS设计典范
官方BitTorrent4.0.0发布