Anfänger Frage: DTML Method Inhal t in REQUEST schreiben?

"Claus Hausberger" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo

ich bin relativ neu bei Zope und komme gerade nicht weiter.

ich möchte eine DTML Methode aufrufen und den Inhalt in den REQUEST schreiben.

Variante 1:

<dtml-let work="_.getitem('my_dtml_method')">
          <dtml-call "REQUEST.set('param1', work)">
</dtml-let>

leider tut das  nicht, da dann das DTML Method objekt selbt genommen wird, das zu einem Fehler führt.


Variante 2:
<dtml-let work="_.getitem('my_dtml_method').document_src() ">
          <dtml-call "REQUEST.set('param1', work)">
</dtml-let>

Das tut ist aber wohl nicht schön. Funktioniert auch nur deshalb, weil diese DTML Method nur Text enthält (keine dtml tags) und ich nur den Text will.
Evtl. ist es gar nicht besonders gut, hier überhaupt eine DTML Method zu verwenden. Das kann ich aber leider nicht ändern, da das alles legacy code ist und zuviel dran hängt.

Hat jemand einen Tip wie man das richtig macht?

Viele Grüße

Claus 

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.