[Zope] Adding content to document types

Matthias Hörtzsch m_hoertzsch@yahoo.de
Wed, 5 Mar 2003 17:19:22 +0100


Am Mittwoch, 5. März 2003 11:34 schrieb Samir Mishra:
> Hello all,
>
> I'm adding documents & scripts to a folder using -
>     context.manage_addDTMLMethod("index_html", "Index") #document name &
> title
> etc.
>
> These documents are created with default body content.
>
> My question is - how do I access/add to/replace the content that is
> inserted into the documents by default? For example, I'd like to insert
> dynamically generated code into Python scripts, or into the DTML document
> using properties defined within the folder.

Have a look into the API Docs, there are methods you can use to replace the 
content.

For DTML methods / documents -> manage_edit(data, title)

for Python scripts -> ZPythonScript_edit(params, body)

hth

Matthias

>
> TIA.
>
> Samir.
>
> _______________________________________________
> Zope maillist  -  Zope@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 )

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de