Commit 8a8f9384 authored by Jérome Perrin's avatar Jérome Perrin

ProxyField: use Skinnable API to get current skin

SKINDATA is an implementation detail that should not be accessed from
this level.
parent 45e45842
...@@ -36,7 +36,6 @@ from Acquisition import aq_base ...@@ -36,7 +36,6 @@ from Acquisition import aq_base
from MethodObject import Method from MethodObject import Method
from zLOG import LOG, WARNING from zLOG import LOG, WARNING
from Products.CMFCore.Skinnable import SKINDATA
from Products.Formulator import Widget, Validator from Products.Formulator import Widget, Validator
from Products.Formulator.Field import ZMIField from Products.Formulator.Field import ZMIField
...@@ -439,11 +438,8 @@ class ProxyField(ZMIField): ...@@ -439,11 +438,8 @@ class ProxyField(ZMIField):
# priority. # priority.
# This should return no field if the skin folder name is defined in # This should return no field if the skin folder name is defined in
# form_id. # form_id.
skin_info = SKINDATA.get(get_ident()) skin_selection_name = object.getCurrentSkinName()
if skin_selection_name is not None:
if skin_info is not None:
_, skin_selection_name, ignore, resolve = skin_info
selection_dict = portal_skins._getSelections() selection_dict = portal_skins._getSelections()
candidate_folder_id_list = selection_dict[skin_selection_name].split(',') candidate_folder_id_list = selection_dict[skin_selection_name].split(',')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment