2005年07月04日 星期一 17:14
粗略的看了看,感觉还不错,推荐给大家http://www.myghty.org/ 快速入门:http://www.myghty.org/docs/whatsitdo.myt 一段示例代码: <%args> userid <%python scope="init"> # open a connection to an expensive resource ldap = Ldap.connect() userrec = ldap.lookup(userid) name: <% userrec['name'] %>
address: <% userrec['address'] %>
email: <% userrec['email'] %>
<%python scope="cleanup"> # insure the expensive resource is closed if ldap is not None: ldap.close() -- Blog:http://www.donews.net/changzheng
2005年07月04日 星期一 17:47
不错!看起来很有感觉………… 在 05-7-4,清风<paradise.qingfeng at gmail.com> 写道: > 粗略的看了看,感觉还不错,推荐给大家http://www.myghty.org/ > 快速入门:http://www.myghty.org/docs/whatsitdo.myt > > 一段示例代码: > <%args> > userid > > <%python scope="init"> > # open a connection to an expensive resource > ldap = Ldap.connect() > userrec = ldap.lookup(userid) > > > name: <% userrec['name'] %>
> address: <% userrec['address'] %>
> email: <% userrec['email'] %>
> > <%python scope="cleanup"> > # insure the expensive resource is closed > if ldap is not None: > ldap.close() > > > -- > Blog:http://www.donews.net/changzheng > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- [Time is unimportant, only life important!]
Zeuux © 2025
京ICP备05028076号