[Zope] How-to: Automaticlly Generate a Document from an HTML
Form... Plone
robert rottermann
robert at redcor.ch
Tue May 18 15:39:12 EDT 2004
Shane McCombs wrote:
> Hi All
>
> I am trying to figure out how to do this if it is possible…
>
> 1) I would like to present my users with a Form.
>
> 2) When the form is filled out and submitted it creates a document.
>
> 3) The Doc can then “Flow” thru the Plone WorkFlow/Approval System.
>
> I cannot figure out how to create documents programmatically.
>
> I will tackle the work flow next.
>
> Any Ideas, Links or instructions would be greatly appreciated.
>
> Sorry but I am new to Zope/Plone/Python - L
>
> Thank you, - Shane
>
> Shane McCombs
>
> Innovation Developer
>
> Raymond Building Supply Corp.
>
> 239.478.6284
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
First of all, please do not use HTML for your postings.
you must call a python script from your form passiong all needed
parameters like id, titel et al.
in the script you call something like:
tool = context.portal_types
tool.constructContent(type_name='Document', container=context, id=id)
hth
Robert
More information about the Zope
mailing list