112----- Original Message ---- From: Jonathan <dev101@magma.ca> DIV { MARGIN:0px;}
A single 'request' from a user can be handled by multiple python scripts (ie. you get a >user request, you invoke script A, script A calls script B, script B calls script C...) and all >of the scripts will have access to the same REQUEST data (ie. REQUEST will remain >available until you send a response back to the user).
Hmmm. I have a problem. The following code works perfectly with the system I have set up on about 400 pages...something I clearly wouldn't want to re-edit...*except* for the 2nd line, which calls a script. Now, that second line *by itself* works just fine!! I've tested both the above scenarios. But in combination, it doesn't work. Why? <tal:block metal:define-macro="main"> <div tal:replace="structure here/testing" /> <div tal:condition="here/Quotes | nothing" tal:content="structure here/s/getRandomQuote" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/header_bg.jpg" class=header> <tr> <td width="76"><img src="images/header_left.jpg" alt="" width="76" height="37"></td> <td align="right"><tal:block metal:define-slot="headline"><span tal:replace="template/title_or_id" /></tal:block></td> <td width="76"><img src="images/header_right.jpg" alt="" width="76" height="37"></td> </tr> </table> <table width="95%" border="0" cellspacing="0" cellpadding="0" class=main align="center"> <tr> <td><br> <!-- START TEXT SLOT --> <tal:block metal:define-slot="text"></tal:block> <!-- END TEXT SLOT --> </td> </tr> <tr> <td> <br /> <br/> <!-- START FOOTER SLOT --> <tal:block metal:define-slot="footer"> <span metal:use-macro="here/templates/frame_footer/macros/main"></span> </tal:block> <!-- END FOOTER SLOT --> </td> </tr> </table> </tal:block> TIA, Nancy ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
Dnia piątek, 8 grudnia 2006 00:32, Nancy Donnelly napisał:
Hmmm. I have a problem. The following code works perfectly with the system I have set up on about 400 pages...something I clearly wouldn't want to re-edit...*except* for the 2nd line, which calls a script. Now, that second line *by itself* works just fine!! I've tested both the above scenarios. But in combination, it doesn't work. Why?
I've got a piece of code that works and at the same time doesn't work. This code calls a script that works but at the same time doesn't work. Of course I won't tell you what kind of error I get and I won't show you my traceback. Nancy, what is wrong with my code? Are you able to help my? No? Sorry but no one will be able to help you if you keep defining your problems like that. -- Jakub Wisniowski
participants (2)
-
eXt -
Nancy Donnelly