我应该如何将 Plone 产品从 Collective.lead 移植到 z3c.saconfig?
我有一个使用 Collective.lead 来配置 SQLAlchemy 的 Plone 产品,包括 专业克隆人开发。我应该如何将其移植到 z3c.saconfig?我能够保留 ZODB 内的配置还是需要将其放入 site.zcml 中?
I have a Plone product that uses collective.lead to configure SQLAlchemy, including an in-Plone database configuration interface as documented in Professional Plone Development. How should I port this to z3c.saconfig? Will I be able to keep the in-ZODB configuration or will it need to go into site.zcml?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
collective.saconnect 提供了一个很好的控制面板来管理连接字符串。只要您安装了 z3c.saconfig,它就可以将它们作为命名实用程序使用。也就是说,我主要只是将 z3c.saconfig zcml 添加到构建中实例部分的 zcml-additional 属性中。
collective.saconnect provides a nice control panel for managing connection strings. So long as you have z3c.saconfig installed it makes these available as named utilities. That said, I mostly just add the z3c.saconfig zcml to the zcml-additional attribute of the instance section in the buildout.
我刚刚遇到了这个。我不会给你完整的答案,但我可以说 z3c.saconfig 通过 SiteScopedSession 支持 ZODB 内配置;我设计它是为了支持该用例。但是,您必须提供自己的子类及其自己的用户界面,并确保将其安装为本地实用程序。
I just ran into this. I won't give you a full answer, but I can say that z3c.saconfig supports in-ZODB configuration through SiteScopedSession; I designed it to support that use case. You'll have to provide your own subclass of that with its own user interface, however, and make sure you install this as a local utility.