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.) i'm not a developer and although i understand a bit about DTML i cannot find out what is going wrong. I've searched the web but there seems very little on SOAP/python/Zope. any help would be gratefully appreciated. Mark
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
Andreas Jung schrieb:
--On 3. September 2007 16:10:56 +0200 robert rottermann <robert@redcor.ch> wrote:
<div tal:content="python:requestStudentData('5506239')" />
Likely you need tal:content="python: context.requestStudentData(...)"
-aj
andreas is perfectly right .. rr
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@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 )
----- Original Message ----- From: "Tom Von Lahndorff" <tom@modscape.com> To: "robert rottermann" <robert@redcor.ch> Cc: <zope@zope.org> Sent: Monday, September 03, 2007 12:10 PM Subject: Re: [Zope] SOAPMethod
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
+1 ;-) Jonathan
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@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 )
_______________________________________________ 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 )
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM
Hi Tom to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening. Mark On Monday 03 September 2007 17:32, Jonathan wrote:
----- Original Message ----- From: "Tom Von Lahndorff" <tom@modscape.com> To: "robert rottermann" <robert@redcor.ch> Cc: <zope@zope.org> Sent: Monday, September 03, 2007 12:10 PM Subject: Re: [Zope] SOAPMethod
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
+1 ;-)
Jonathan
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@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 )
_______________________________________________ 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 )
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM
_______________________________________________ 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 )
-- Mark Baldry IT support Union of UEA Students t: 01603 592503 e: mark@ueastudent.com
----- Original Message ----- From: "Mark Baldry" <mark@ueastudent.com> To: <zope@zope.org> Sent: Tuesday, September 04, 2007 4:48 AM Subject: Re: [Zope] SOAPMethod
Hi Tom
to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening.
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.)
If I understand correctly, you are saying that the requestStudentData method is returning the correct information, but that information is not displaying in your web browser, and that you can only see the information returned by requestStudentData if you view the source for the page. If this is the case, then it sounds like an html/css display problem, not a dtml problem. To verify this, create a dtml method that contains: <html> <head><title>Testing</title></head> <body> <dtml-var "requestStudentData('5506239')"> </body> </html> If the information displays correctly when you click on the View tab for the above dtml method then you know that you have an html/css problem in your original dtml method. If you don't see the correct information, then your 'requestStudentData' method is not functioning correctly. hth Jonathan
See Johnathan's comment. It sounds like an html/css issue. If it renders in the source its working. On Sep 4, 2007, at 4:48 AM, Mark Baldry wrote:
Hi Tom
to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening.
Mark
On Monday 03 September 2007 17:32, Jonathan wrote:
----- Original Message ----- From: "Tom Von Lahndorff" <tom@modscape.com> To: "robert rottermann" <robert@redcor.ch> Cc: <zope@zope.org> Sent: Monday, September 03, 2007 12:10 PM Subject: Re: [Zope] SOAPMethod
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
+1 ;-)
Jonathan
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@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 )
_______________________________________________ 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 )
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM
_______________________________________________ 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 )
-- Mark Baldry IT support Union of UEA Students t: 01603 592503 e: mark@ueastudent.com _______________________________________________ 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 )
(Mon, Sep 03, 2007 at 12:10:13PM -0400) Tom Von Lahndorff wrote/schrieb/egrapse:
...People on this list though will always recommend TAL because they are mostly developers who use WYSIWYG html editors.
Tom, whatever you might say about DTML vs. Page Templates, *this* sentence of yours is just bullsh... Do you think any of the Zope devs sit around and design their stuff in DreamReaper or GoDeath? You must be joking. People on this list recommend TAL for various reasons, but none of them have anything to do with them using point-and-click "webdesign" programs. Regards, Sascha
really? It looks like the number one argument for using ZPT is because it's compatible with "DreamReaper" and "GoDeath". http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx If people use it for other reasons, great. I think WSYSIWYG editors are total crap for many reasons so Im with you on that one. I guess the problem is that rarely does anyone point a reason that someone should use TAL over DTML so I think my assumption is fair based on available documentation. Whenever someone posts something about DTML (which is not being deprecated, is not slower as far as I know and does have some benefits over TAL depending on what you're doing) they mostly get a comment like "Use TAL, not DTML". Why? Frankly, I dont care how people choose to develop their products, there's benefits and drawbacks to both TAL and DTML but I would tell someone to try both and decide and not just tell them to use what I prefer. On Sep 4, 2007, at 3:32 PM, Sascha Welter wrote:
(Mon, Sep 03, 2007 at 12:10:13PM -0400) Tom Von Lahndorff wrote/ schrieb/egrapse:
...People on this list though will always recommend TAL because they are mostly developers who use WYSIWYG html editors.
Tom,
whatever you might say about DTML vs. Page Templates, *this* sentence of yours is just bullsh... Do you think any of the Zope devs sit around and design their stuff in DreamReaper or GoDeath? You must be joking.
People on this list recommend TAL for various reasons, but none of them have anything to do with them using point-and-click "webdesign" programs.
Regards,
Sascha
_______________________________________________ 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 )
Mark Baldry wrote at 2007-9-3 14:55 +0100:
.... 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.
Usually, this indicates that markup is returned. To verify this assumption, can you post what you see "at the source of the page"? -- Dieter
participants (7)
-
Andreas Jung -
Dieter Maurer -
Jonathan -
Mark Baldry -
robert rottermann -
Sascha Welter -
Tom Von Lahndorff