I am trying to use JQuery JsTree with Python Pyramid + Chameleon. All goes well except the definition of icons.
My JSTree is loaded from a XML that I produce using Python, but when I try to set the icon with:
contentName.attrib["icon"] = "./edit.png"
It does not show the icon (not even the default icon) because such resource does not exists in my pyramid application. However if I declare a resource URL called "static" with:
config.add_static_view('static', 'static', cache_max_age=3600)
and I set the icon to:
contentName.attrib["icon"] = "${request.static_url('xmlmetaeditor:static/edit.png')}"
JSTree load the defaul icon. But not my edit.png icon
Any idea how to properly indicate the icon?
Thanks,
Carlos.