{{ #-------------------------------------------------------------------------- # # The python controller return cfg_store, the configuration of # the Ext.data.Store #-------------------------------------------------------------------------- # # unique identifier for the DIV block associated to the grid # divgrid = "grid-%s" % id(cfg_store) # # The DIV block # response.write(DIV(_id=divgrid)) # # Export python variables to the javascript # jsvars = ["cfgStore = %s" % cfg_store, "divgrid = '%s'" % divgrid, "selector = %s" % selector] jsvars = " var %s;" % ',\n'.join(jsvars) response.write(SCRIPT(jsvars), escape=False) }}