|
|
|
|
 请教一个ZOPE的问题,请指点!谢谢! - kaze [ 2006-04-15 00:49 | 813 byte(s)]
 Re: 请教一个ZOPE的问题,请指点!谢谢! - limodou [ 2006-04-18 16:19 | 261 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
最近在学习ZOPE,学习如何用PYTHON基本类来实现ZOPE的PRODUCT。具体是根据下面的连接学习的:
http://www.zope.org/Documentation/Books/ZDG/current/Products.stx
但学习到使用DTML Method来绑定产品实体时,卡住了,不知道怎么样实现,请大侠指点,谢谢!
具体就是从下面这一段开始,不知道如何操作,请指点,谢谢!
Now you should build some DTML Methods and Python Scripts to test your poll instance. Here's a Python Script to figure out voting percentages:
....
To use this DTML Method, call it on your poll instance. Notice how this DTML makes calls to both your poll instance and the getPercentFor.
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
好久不弄zope了,已经忘得差不多了。不过我想每个zope的产品在使用前首先要在folder中添加一个对象,这个对象就是你将要在dtml中操纵的实例。然后在dtml中使用它即可。
建议加入 czug的邮件列表来提问,它是专门的zope/plone的中文邮件列表,里面有许多的高手。
|
|
|
----
|
|
[Original]
[Print]
[Top]
|
|
|