[Zope] SOAPMethod

Tom Von Lahndorff tom at modscape.com
Mon Sep 3 12:10:13 EDT 2007


Hi Mark,

There's nothing wrong with using DTML instead of TAL. each have their  
drawbacks and benefits and it really comes down to user choice and  
job requirements. People on this list though will always recommend  
TAL because they are mostly developers who use WYSIWYG html editors.  
If you hand code your design markup dtml can be much cleaner, require  
less code and avoid annoying problems with javascript.

Tom

On Sep 3, 2007, at 10:10 AM, robert rottermann wrote:

> Mark Baldry schrieb:
>> I need to get some information from a database and display it on  
>> our website.
>> It's a very simple query just passing one number to get the  
>> record. The only
>> way i am allowed to query this database is via SOAP.
>>
>> I have installed the SOAPMethod and have got it working but i  
>> cannot get the
>> result to display. I can only view the result when i look at the  
>> source of
>> the page.
>>
>> the dtml Method i am using is written -
>>
>> <dtml-var expr="requestStudentData('5506239')">
>>
>> this is what the help that came with the product says to use.
>>
>> (requestStudentData is the name of the SOAPMethod and "5506239" is  
>> the query
>> string i am passing to the database.)
>>
>>
> you better do not use dtml but tal (aka page templates). to learn  
> about
> it go to the zope site and look up the zope book (take the one on  
> plope.org)
>
> it would look something like:
> <html>
>   <head>
>     <title tal:content="template/title">The title</title>
>   </head>
>   <body>
>
>     <b>Some information on student 5506239</b>
>     <div tal:content="python:requestStudentData('5506239')" />
>
>   </body>
> </html>
>
>
> HTH
> robert
> <robert.vcf>
> _______________________________________________
> 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 )



More information about the Zope mailing list