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 its

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:

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 w

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 res

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 t

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 g

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

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

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

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

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

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

Re: [Zope] Zope/Cache/Memory

2006-12-07 Thread Dieter Maurer
kevin7kal wrote at 2006-12-6 14:30 -0500: >I have a database that is just under 200K objects with plans that it >will grow larger. The objects are created by using another object with >methods that read files and create the objects from the data in the >files. When creating the objects, I find

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 _

Re: [Zope] changing the meta_type for python product class

2006-12-07 Thread Dieter Maurer
Dragos Chirila wrote at 2006-12-6 20:53 +0200: >Ok, you are right, but if I do it why the ZMI is showing to me the new >meta type for both instances? This is wrong... You have to distinquish between attributes defined on class and those defined on instance level. Attributes defined on class level

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 W

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), p

[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

Re: [Zope] MailHost with SSL

2006-12-07 Thread Chris Withers
Andreas Jung wrote: Modifying likely one line of code is elegant enough. If you want a better car you have to pimp it. If you do make any changes, can you chuck a patch in the tracker: https://secure.simplistix.co.uk/support ? It's annoying that we still have to use such clunky means in Zope

Re: [Zope] MailHost with SSL

2006-12-07 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 7. Dezember 2006 00:38:04 -0800 Ferhat Ayaz <[EMAIL PROTECTED]> wrote: > Yes, thanks. You're so adroit. Now my problem is solved. > Now I have the punch line and know how to use Mail Template with > SecureMailHost: Do it yourself and never a

Re: [Zope] MailHost with SSL

2006-12-07 Thread Ferhat Ayaz
Yes, thanks. You're so adroit. Now my problem is solved. Now I have the punch line and know how to use Mail Template with SecureMailHost: Do it yourself and never ask for existing solutions. If possible invent the wheel again.! Thanks for your shopping and car examples :) Andreas Jung <[EMAIL PR