WebDev Module

I recently installed the WebDev module and I just want to say I think this is a great idea, and it’s going to make my life a lot easier. Having said that, I have a few questions.

I’m on 7.7.2rc (MES) and I would like to be able to interact with an analysis controller. Is this possible, I get the feeling that these modules don’t ‘see’ windows/components.

If not, is there a work around I could use to expose that analysis controller data (preferably through this module/web services)? We have a lot of requests for data in MES from outside of MES, and we don’t want to recreate the metrics that Inductive already provides.

Here’s the code I’m currently trying to implement to get at that analysis controller (acRun) data.

def doGet(request, session):
	from system.dataset import toPyDataSet as toPyDs
	
	json={}
		
	root=system.gui.getWindow('WebDevWindow').getRootContainer()
	ac=root.getComponent('acRun')
	tbl=toPyDs(ac.tableData)
	
	for row in tbl:	
		json[row[0]]=str(row[1])
		
	return {'json': json}