{{ #-------------------------------------------------------------------------- # # The python controller return cfg_store, the configuration of # the Ext.data.Store # # prepare the data # - build unique DIV identifier # - Title and DIV block # #-------------------------------------------------------------------------- # # unique identifier for the DIV block associated to the grid # divgrid = "grid-%s" % id(cfg_store) # # The title and the DIV block # response.write(H2(T("Software versions"), _class="dbui-h2 dbui-small-cap")) response.write(DIV(_id=divgrid)) # # Export python variables to the javascript # jsvars = ["cfgStore = %s" % cfg_store, "divgrid = '%s'" % divgrid] jsvars = " var %s;" % ',\n'.join(jsvars) response.write(SCRIPT(jsvars), escape=False) }}