一些有用的web开发工具
largeblue.util的Python项目详细描述
atm largeblue.util只有一个电子邮件发送实用程序,它将 zope.sendmail功能,外加一个批处理实用程序,可用于批处理搜索结果 /列表等:
>>> from largeblue.util.interfaces import IEmail, IBatch >>> from zope.component import getUtility
包配置了这两个实用程序,使它们可以查找(毕竟是zcml 注册已被解析)位于:
>>> getUtility(IEmail) <class 'largeblue.util.emailer.Email'> >>> getUtility(IBatch) <class 'largeblue.util.batch.Batch'>
您需要配置自己的smtpmailer&queueddelivery实用程序(这些应该是 为每个站点/实例手动完成-请参阅configure.zcml中的注释)。