def getCtrlUi(c_id=None): e = Event('web.getCtrlUi') c = BControl() res = c.getUiDefTemplate(c_id) return res