如何让 Zenoss 识别皮肤变化?

发布于 2024-08-08 02:05:36 字数 505 浏览 1 评论 0原文

我正在为 Zenoss 编写 ZenPack,其中包含一个新的数据源。 DataSource 与另一个持久对象具有 ToOne 关系,我正在尝试构造用户界面以允许用户指定此关系的值。我给数据源一个factory_type_information属性,其中“immediate_view”键映射到皮肤/模板的名称 - “viewAgentScriptDataSource”。在我的 ZenPack 的外观目录中,我创建了 viewAgentScriptDataSource.pt。 Zenoss 似乎很喜欢这一点,现在当我查看 DataSource 的实例时,我会看到一个基于 viewAgentScriptDataSource.pt 的页面。

然而,在第一次成功之后,我对皮肤/模板文件所做的任何编辑都将被忽略。我尝试用更真实的内容替换文件的虚拟内容并重新加载数据源视图。虚拟内容仍然出现。我尝试重新启动 Zenoss 并重新加载视图。虚拟内容仍然出现。我尝试删除我的 ZenPack 并重新安装它。虚拟内容仍然出现。

如何让 Zenoss 加载皮肤文件的新内容?

I'm writing a ZenPack for Zenoss which includes a new DataSource. The DataSource has a ToOne relationship with another persistent object and I'm trying to construct the user interface to allow a user to specify the value of this relationship. I've given the DataSource a factory_type_information attribute with an "immediate_view" key mapped to the name of a skin/template - "viewAgentScriptDataSource". In my ZenPack's skins directory, I created viewAgentScriptDataSource.pt. Zenoss seems to have liked this and now when I view an instance of the DataSource, I see a page based on viewAgentScriptDataSource.pt.

However, after this first success, any edits I make to the skin/template file are ignored. I tried replacing the dummy content of the file with something more realistic and reloading the data source view. The dummy content still appears. I tried restarting Zenoss and reloading the view. The dummy content still appears. I tried deleting my ZenPack and re-installing it. The dummy content still appears.

How do I get Zenoss to load the new contents of the skin file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夏末染殇 2024-08-15 02:05:36

问题是我所做的模板更改实际上都没有对最终页面输出产生任何影响。这些变化已被接受,但并不重要。

The problem turned out to be that none of the template changes I made actually had any impact on the final page output. The changes were picked up, they just didn't matter.

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