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
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
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?
- 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
+---[ 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
-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
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
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
-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:
|
|
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
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
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
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
13 matches
Mail list logo