<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi.<br>
I want to create a new Miniportal object that is pre-populated with a
variety of content objects.<br>
I have just create a product for this but my problem is yhe insert of
contents.<br>
I have create my structur with:<br>
<br>
--------------------------------------------------<br>
        self.invokeFactory(id='prova', type_name='Folder')<br>
        obj=getattr(self,'prova')<br>
        obj.invokeFactory(id='newsitem_1', type_name='News Item')<br>
        obj.invokeFactory(id='document_1', type_name='Document')<br>
        documento=getattr(obj, 'document_1')<br>
        <b>documento.edit('html', '&lt;p&gt;This is a new
Page&lt;/p&gt;')</b><br>
        obj.invokeFactory(id='image_1', type_name='Image')<br>
        obj.invokeFactory(id='cartella1', type_name='Folder')<br>
        folder10=getattr(obj, 'cartella1')<br>
        folder10.invokeFactory(id='sottocartella1', type_name='Folder')<br>
---------------------------------------------------<br>
<br>
But i want insert in this structure a already existing template that is
in the folder of the script.<br>
How can i do this?? What does parameters must i use in the method
"invokeFactory".<br>
Thank you very much.<br>
<br>
Francesco<br>
<br>
</body>
</html>