Re: [Zope] Simple Question

2006-12-07 Thread eXt
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 )


Re: [Zope] Simple Question

2006-12-07 Thread Andreas Jung
-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:
>> |
>> | 
>>
>> 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

2006-12-07 Thread Nancy Donnelly
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?





 
  
  
  
 



  

 


  
  


  

 



  




  






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

2006-12-07 Thread Jonathan
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).

If you are talking about retaining REQUEST information between two different 
user 'requests' then that is a whole different story...


Jonathan
  - Original Message - 
  From: Nancy Donnelly 
  To: zope@zope.org 
  Sent: Thursday, December 07, 2006 5:40 PM
  Subject: 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



--
  Have a burning question? Go to Yahoo! Answers and get answers from real 
people who know.


--


  ___
  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

2006-12-07 Thread Nancy Donnelly
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

2006-12-07 Thread Jens Vagelpohl

-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:
|
| 

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

2006-12-07 Thread Maciej Wisniowski
> Here is the page that I need to quote, and this is why I need triple quotes:
Wrong.

1. Log into ZMI.
2. Create PageTemplate object named 'mypage'
3. Edit 'mypage' that it contains your html code (this what you gave
into triple quotes before):

(...)

4. create Script (Python) called 'myscript'
5. Edit script that it contains only one line:
return context.mypage()  # mypage is name of PageTemplate from point 2.

-- 
Maciej 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 )


Re: [Zope] Simple Question

2006-12-07 Thread Andrew Milton
+---[ Andreas Jung ]--
| -BEGIN PGP SIGNED MESSAGE-
| Hash: SHA1
| 
| 
| 
| - --On 7. Dezember 2006 12:31:32 -0800 Nancy Donnelly 
| <[EMAIL PROTECTED]> wrote:
| 
| > 7170- Original Message 
| > From: Jonathan <[EMAIL PROTECTED]>
| >
| > Here is the page that I need to quote, and this is why I need triple
| > quotes:
| 
| The question is why Rachel did not read the Python tutorial:
| 
| 

Who is Rachel? d8)

-- 
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

2006-12-07 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 7. Dezember 2006 12:31:32 -0800 Nancy Donnelly 
<[EMAIL PROTECTED]> wrote:

> 7170- Original Message 
> From: Jonathan <[EMAIL PROTECTED]>
>
> Here is the page that I need to quote, and this is why I need triple
> quotes:

The question is why Rachel did not read the Python tutorial:



- -aj
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFeHweCJIWIbr9KYwRApGMAKCxjf36pnmMGG92QO8AxHPw45nF8ACg1YPS
371x764b6JJQmOV4qgGdBz0=
=/NPv
-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

2006-12-07 Thread Andrew Milton
+---[ 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 """
| 
| 
| 
| 
| 
| 
| 
|  
|   
|   
|   
|  
| 
| 
| 
|   
|
| 
| 
| 
|  
|   
| 
| 
|   
| 
|  
| 
| 
| 
|   
| 
| 
| 
| 
|   
| 
| 
| 
| 
| 
| 
| 
| """
| 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

2006-12-07 Thread 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 """







 
  
  
  
 



  

 


  
  


  

 



  




  







"""
return printed





 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index___
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

2006-12-07 Thread Jonathan
I think we need some more information as to what you are trying to accomplish!  
Why is it more complicated?  Why do you need triple quotes?


Jonathan


  - Original Message - 
  From: Nancy Donnelly 
  To: zope@zope.org 
  Sent: Thursday, December 07, 2006 2:51 PM
  Subject: Re: [Zope] Simple Question


  - Original Message 
  From: Jonathan <[EMAIL PROTECTED]>


  >you should just be able to do:
  > 
  >print "Hello World"
  >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



--
  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

2006-12-07 Thread Nancy Donnelly
- Original Message 
From: Jonathan <[EMAIL PROTECTED]>



 
DIV {
MARGIN:0px;}



>you should just be able to do:

>
>print "Hello 
World"

>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

2006-12-07 Thread Ferhat Ayaz


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 """
Hello, world!
"""
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

2006-12-07 Thread Jonathan
you should just be able to do:

print "Hello World"
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 """
  Hello, world!
  """
  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 )


[Zope] Simple Question

2006-12-07 Thread Nancy Donnelly
107106Hi;
The following doesn't work in a Script (Python), presumably because I can't 
quote html:

print """
Hello, world!
"""
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?

2000-10-24 Thread Chris Withers

Noah wrote:
> In my file "add_art_html" I want to add this code:
> 
> But when I try to view it I get a KeyError.
> I also tried:
> 

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:



...but sadly, for now, you need to do:



...or, slightly more tasty:


 


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?

2000-10-24 Thread Noah

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:

But when I try to view it I get a KeyError.
I also tried:


I tried some complicated things with  and
, but I couldn't get this to work; although,
 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 )




[Zope] simple question

2000-08-25 Thread Marcus Schopen

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 )