开发者

How should I port a Plone product from collective.lead to z3c.saconfig?

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 s开发者_Python百科hould 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?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜