[Zope] Simple Question
107106Hi; The following doesn't work in a Script (Python), presumably because I can't quote html: print htmlbodyHello, world!/body/html return printed What should I use instead? TIA, Nancy Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 )
Re: [Zope] Simple Question
you should just be able to do: print htmlbodyHello World/body/html return printed Jonathan - Original Message - From: Nancy Donnelly To: zope@zope.org Sent: Thursday, December 07, 2006 1:53 PM Subject: [Zope] Simple Question 107106Hi; The following doesn't work in a Script (Python), presumably because I can't quote html: print htmlbodyHello, world!/body/html return printed What should I use instead? TIA, Nancy -- Want to start your own business? Learn how on Yahoo! Small Business. -- ___ 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 )
Re: [Zope] Simple Question
Read the template script when adding new Script(Python) On Dec 7, 2006, at 7:53 PM, Nancy Donnelly wrote: 107106 Hi; The following doesn't work in a Script (Python), presumably because I can't quote html: print htmlbodyHello, world!/body/html return printed What should I use instead? TIA, Nancy Want to start your own business? Learn how on Yahoo! Small Business. ___ 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 )
Re: [Zope] Simple Question
- Original Message From: Jonathan [EMAIL PROTECTED] DIV { MARGIN:0px;} you should just be able to do: print htmlbodyHello World/body/html return printed Um, yes, but it's a little more complicated than just one line :) How do I do it with triple quote? TIA, Nancy Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 )
Re: [Zope] Simple Question
+---[ Nancy Donnelly ]-- | 7170 | - Original Message | From: Jonathan [EMAIL PROTECTED] | | Here is the page that I need to quote, and this is why I need triple quotes: | | print | html | body | | tal:block metal:define-macro=main | tal:content metal:use-macro=here/templates/protect/macros/strong/ | tal:content | 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=76img src=images/header_left.jpg alt= width=76 height= | 37/td | td align=righttal:block metal:define-slot=headlinespan tal:replace= | template/title_or_id //tal:block/td | td width=76img 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 | tdbr | | !-- START TEXT SLOT -- | tal:block metal:define-slot=text/tal:block | !-- END TEXT SLOT -- | | /td | /tr | tr | td | | br /#160;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 | | /body | /html | | return printed It's not going to process the TAL or METAL. Triple quotes are no different to single quotes when it comes to strings. -- Andrew Milton [EMAIL PROTECTED] ___ 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 )
Re: [Zope] Simple Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7 Dec 2006, at 21:41, Andrew Milton wrote: | The question is why Rachel did not read the Python tutorial: | | http://docs.python.org/tut/node5.html Who is Rachel? d8) Rachel is Nancy is countless other names. Someone who apparently has a good reason to hide his or her true identity. No, I'm not kidding. I got it from the horse's mount (Nancy/Rachel/etc). jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFeIZxRAx5nvEhZLIRAhiEAKCj42pEPC5SwQTCeVr8gOtLD6NcUwCeNo32 EJKp4M8D0jSRaAKZTHilKWU= =viJ6 -END PGP SIGNATURE- ___ 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 )
Re: [Zope] Simple Question
7373- Original Message From: Maciej Wisniowski [EMAIL PROTECTED] All of that worked, but so much for being simple. Upon re-analysis, what I need to do is call a Script (Python) from within a page template but still retain the container.REQUEST from the previous call. That is, page template X calls page template Y which calls Script (Python) Z and Z needs the container.REQUEST of X. Is that possible? TIA, Nancy Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 )
Re: [Zope] Simple Question
112- Original Message From: Jonathan [EMAIL PROTECTED] 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=76img src=images/header_left.jpg alt= width=76 height=37/td td align=righttal:block metal:define-slot=headlinespan tal:replace=template/title_or_id //tal:block/td td width=76img 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 tdbr !-- START TEXT SLOT -- tal:block metal:define-slot=text/tal:block !-- END TEXT SLOT -- /td /tr tr td br /#160;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.___ 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 )
Re: [Zope] Simple Question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 7. Dezember 2006 22:24:01 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7 Dec 2006, at 21:41, Andrew Milton wrote: | The question is why Rachel did not read the Python tutorial: | | http://docs.python.org/tut/node5.html Who is Rachel? d8) Rachel is Nancy is countless other names. Someone who apparently has a good reason to hide his or her true identity. No, I'm not kidding. I got it from the horse's mount (Nancy/Rachel/etc). I can second that. Nancy posted some days ago as Nancy on the plone-users list and signed her mail as Rachelanything more to say? Trying to fool us with multiple faked identities considers the predicate numptard. Let's ignore him/her forever on any Zope list. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFePyxCJIWIbr9KYwRAgs3AJ9I7HDLRb4cIkNW7BXZYGY+pAVtnACfT4eg BUXFqvmw+8DGctsUElI1Hw4= =SC8D -END PGP SIGNATURE- ___ 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 )
Re: [Zope] Simple Question
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 ___ 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] Simple Question?
This seems like a simple question. How do I include a Method in a different folder? I have two folders and two methods: /editor/ edit /mojo/art/ add_art_html In my file "add_art_html" I want to add this code: dtml-var /mojo/editor/edit But when I try to view it I get a KeyError. I also tried: dtml-var '/mojo/editor/edit' I tried some complicated things with dtml-call and dtml-return, but I couldn't get this to work; although, dtml-call /editor/edit at least did not give a KeyError. Yours, Noah ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Simple Question?
Noah wrote: In my file "add_art_html" I want to add this code: dtml-var /mojo/editor/edit But when I try to view it I get a KeyError. I also tried: dtml-var '/mojo/editor/edit' If Steve A's patch ever makes it into the core, you could do: dtml-/mojo/editor/edit; ...and it'd be great if the Traversal Interface could also be used to implement: dtml-var /mojo/editor/edit ...but sadly, for now, you need to do: dtml-var "PARENT[-1].mojo.editor.edit(_.None,_)" ...or, slightly more tasty: dtml-with "PARENT[-1].mojo.editor" dtml-var edit /dtml-with enjoy ;-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] simple question
Hi there, just a short question about the tree-tag: sould a tree based navigation placed in a seperate frame? I would like to create my sites with tables, so the tree navigation is placed in a table field. I don't want to use frames. The whole page should be in one table. But this seems to give some strange effects. please see: http://marcus.localguru.de:8080/b3/ Or is this normal behavior of a Zope tree? Thank you Marcus __ (0 Marcus Schopen //\ Bielefeld, Germany V_/_ __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )