[Zope] Re: created a structured document

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 18 Dec 2002 10:56:35 +0100


David Bear wrote:
> I would like to created a structure text document in a folder called docStor. 
> 
> The hiearchy looks like this :
> 
> \-- 	"my add form lives here"
> \docStor "this is where I want to create the structured doc"
> 
> I have created a form at '\' called addDoc
> and a script at '\' to grab fields from the form.  However, I don't know the api to call to add a structured document.  I've got the zope book and it uses
> 
> context.manage_addProduct['OFSP'].manage_addDTMLDocument ...
> 
> but I don't want to add a dtml doc.
> 
> Any pointers?

Depends on the Product you use. If you use StructuredDocument 
[http://www.zope.org/Members/mjablonski/StructuredDocument] something like:

context.manage_addProduct['StructuredDocument'].manage_addStructuredDocument(...)

should do the job.

cheers, Maik


-- 
Maik Jablonski                 __o
www.zfl.uni-bielefeld.de     _ \<_    Deutsche Zope User Group
Bielefeld, Germany          (_)/(_)               www.dzug.org