Python code:
rv = mm.execute(())
#if uno.isInterface(rv):
model = goffice.StarDesktop.loadComponentFromURL('private:factory/swriter', '_blank',0,())
b = model.CurrentController.attachModel(model)
goffice.msgbox(b)
isInterface(obj)
Returns True, when obj is a class of a UNO interface.
I had to comment out if uno.isInterface(rv): because it returns 0, no matter which UNO thingy I throw at it. Could this be a bug?
The new text document is loaded, the model is attached with return value True but nothing becomes visible.
What is actually working: storeAsURL and then load the resulting file.