我应该如何将 Plone 产品从 Collective.lead 移植到 z3c.saconfig?

发布于 2024-08-19 19:25:42 字数 240 浏览 7 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

热鲨 2024-08-26 19:25:42

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.

忆沫 2024-08-26 19:25:42

我刚刚遇到了这个。我不会给你完整的答案,但我可以说 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文