Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Displaying dtml method results from zpt

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


Laura.McCord at doucet-austin

Sep 22, 2004, 9:41 AM

Post #1 of 3 (1118 views)
Permalink
Displaying dtml method results from zpt

I have a form that submits information to a dtml method.
The dtml method calls a python script: <dtml-call password> The python
script returns a variable: return(msg)

How do I display that variable, msg, in my zpt?

Thanks.
_______________________________________________
Zope maillist - Zope [at] zope
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 )


toolkit at magma

Sep 22, 2004, 10:15 AM

Post #2 of 3 (1029 views)
Permalink
Re: Displaying dtml method results from zpt [In reply to]

----- Original Message -----
From: "Laura McCord" <Laura.McCord [at] doucet-austin>
> I have a form that submits information to a dtml method.
> The dtml method calls a python script: <dtml-call password> The python
> script returns a variable: return(msg)
>
> How do I display that variable, msg, in my zpt?

if you were to do <dtml-var password> then dtml would render (display) the
results of the 'password' routine.

I don't know if this gets you what you want (I don't use zpt)

Jonathan




_______________________________________________
Zope maillist - Zope [at] zope
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 )


alexis.roda at urv

Sep 22, 2004, 10:16 AM

Post #3 of 3 (1057 views)
Permalink
Re: Displaying dtml method results from zpt [In reply to]

Laura McCord wrote:
> I have a form that submits information to a dtml method.
> The dtml method calls a python script: <dtml-call password> The python
> script returns a variable: return(msg)
>
> How do I display that variable, msg, in my zpt?

What zpt!? you submit to a dtml which calls a script that returns a
value ... there's no zpt ...

Anyway, your question is probably answered here:

http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx

read the section "Creating a File Library with Page Templates"



HTH
--
////
(@ @)
----------------------------oOO----(_)----OOo--------------------------
<> Ojo por ojo y el mundo acabara ciego
/\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
-----------------------------------------------------------------------

_______________________________________________
Zope maillist - Zope [at] zope
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 )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.