web/views/basecontrollers.py
changeset 5444 f7fdb5dd82f6
parent 5426 0d4853a6e5ee
child 5453 d0c8076e298b
equal deleted inserted replaced
5443:f299ee54d7e0 5444:f7fdb5dd82f6
   479         return self._cw.format_date(date)
   479         return self._cw.format_date(date)
   480 
   480 
   481     @jsonize
   481     @jsonize
   482     def js_external_resource(self, resource):
   482     def js_external_resource(self, resource):
   483         """returns the URL of the external resource named `resource`"""
   483         """returns the URL of the external resource named `resource`"""
   484         return self._cw.external_resource(resource)
   484         return self._cw.vreg.config.uiprops[resource]
   485 
   485 
   486     @check_pageid
   486     @check_pageid
   487     @jsonize
   487     @jsonize
   488     def js_user_callback(self, cbname):
   488     def js_user_callback(self, cbname):
   489         page_data = self._cw.session.data.get(self._cw.pageid, {})
   489         page_data = self._cw.session.data.get(self._cw.pageid, {})