0

When I try to call a skin method as follows:

portal.skin_method()

it results in

AttributeError.

I remember being able to do this in older versions of Plone.

Has something changed here?

PS: I am able to do:

portal.portal_skins.skin_name.skin_method()
4

1 回答 1

0

行为没有改变。

主题升级后,您的 portal_skins 注册很可能会以某种方式损坏或丢失。

  • 您能否确认您可以在 ZMI > portal_skins 中看到 skin_method.py

  • 您能否在 ZMI > portal_skins > 属性选项卡的当前主题皮肤列表中检查此特定皮肤文件夹是否处于活动状态?

于 2012-09-18T10:42:21.620 回答