Unfortunatelly, it not the solution. It returns: AttributeError: document_src Does anyone know, if I perhaps have to use the document_src function like this: URL/mydocument/document_src() I'm not sure. The Zope Book API doesn't say it right.
-----Ursprüngliche Nachricht----- Von: Maik Jablonski [SMTP:maik.jablonski@uni-bielefeld.de] Gesendet am: Dienstag, 12. März 2002 09:36 An: Breitenreicher, Marc Cc: zope@zope.org Betreff: Re: [Zope] Create my own edit form
hi,
maybe you can try:
<dtml-var "mydocument.document_src()" html_quote>
greetings, maik.
On Tue, 12 Mar 2002 08:57:01 +0100 "Breitenreicher, Marc" <Marc.Breitenreicher@friatec.de> wrote:
Therefore I need to get the unrendered data of a document to print out in a textarea-box.
I tried something like <textarea name="data:string" cols="50" rows="10"> <dtml-var "_[mydocument]"> </textarea>
The variable 'mydocument' is the document I want to edit. But this returns the rendered dtml-code, only html-tag stay as they were.
hi again, didn't realize the problem that mydocument is a variable. its early in the morning...;-) try this as a python script where 'mydocument' is the id (as string) of the object to display: return getattr(context,mydocument).document_src() greetings again, maik. -- maik jablonski visit www.zope.org, universitaet bielefeld LET'S GET ZOPED!!!! zentrum fuer lehrerbildung didaktik des sachunterrichts postfach 10 01 31 33501 bielefeld germany tel: + 49 (0) 521 106 4234 http://www.zfl.uni-bielefeld.de/ http://www.sachunterricht-online.de/
participants (2)
-
Breitenreicher, Marc -
Maik Jablonski