答复: [zope-chinese] 怎样取得当前目录下对象 的id?
"Gary Jia" <[email protected]>
| Newsgroups | gmane.comp.web.zope.chinese,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
那是出错了还是怎么了,如果有错误那就把错误信息发过来看看。 -----邮件原件----- 发件人: [email protected] [mailto:[email protected]] 代表 Who Bruce 发送时间: 2004年9月1日 11:05 收件人: [email protected] 主题: [zope-chinese] 怎样取得当前目录下对象的id? 我写了一个script(python),希望返回id以test开头的文件,但好像不起作用,大家帮 忙看看,thanks! results=[] for object in context.objectValues('File'): if object.id.startswith('test'): results.append(object) return results _________________________________________________________________ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com _______________________________________________ zope-chinese list [email protected] http://zope.cn/mailman/listinfo/zope-chinese _______________________________________________ zope-chinese list [email protected] http://zope.cn/mailman/listinfo/zope-chinese