[Zope-Checkins] SVN: Zope/branches/2.9/ support for Python 2.4.4
Log message for revision 71480: support for Python 2.4.4 Changed: U Zope/branches/2.9/configure U Zope/branches/2.9/doc/CHANGES.txt -=- Modified: Zope/branches/2.9/configure === --- Zope/branches/2.9/configure 2006-12-07 15:02:31 UTC (rev 71479) +++ Zope/branches/2.9/configure 2006-12-07 16:10:47 UTC (rev 71480) @@ -12,13 +12,13 @@ # Place the optimal target version number for Zope (as returned by sys.version) # below -TARGET=2.4.3 +TARGET=2.4.4 # Order a list of acceptable python version numbers (as returned by # sys.version) below in best to worst order, not including the # target version. Up to six acceptable python versions are allowed. # Do not include the target version number in this list! -ACCEPTABLE=2.4.2 +ACCEPTABLE=2.4.2 2.4.3 # provide the executable names for all the acceptable versions # (and the target version) below Modified: Zope/branches/2.9/doc/CHANGES.txt === --- Zope/branches/2.9/doc/CHANGES.txt 2006-12-07 15:02:31 UTC (rev 71479) +++ Zope/branches/2.9/doc/CHANGES.txt 2006-12-07 16:10:47 UTC (rev 71480) @@ -4,7 +4,13 @@ Change information for previous versions of Zope can be found in the file HISTORY.txt. + Zope 2.9.7 (unreleased) + Bugs fixed + + - added Python 2.4.4 as optimal Python version to 'configure' + + Zope 2.9.6 (2006-11-22) Bugs fixed ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/configure support for Python 2.4.4
Log message for revision 71482: support for Python 2.4.4 Changed: U Zope/trunk/configure -=- Modified: Zope/trunk/configure === --- Zope/trunk/configure2006-12-07 16:10:56 UTC (rev 71481) +++ Zope/trunk/configure2006-12-07 16:11:22 UTC (rev 71482) @@ -12,13 +12,13 @@ # Place the optimal target version number for Zope (as returned by sys.version) # below -TARGET=2.4.3 +TARGET=2.4.4 # Order a list of acceptable python version numbers (as returned by # sys.version) below in best to worst order, not including the # target version. Up to six acceptable python versions are allowed. # Do not include the target version number in this list! -ACCEPTABLE=2.4.2 +ACCEPTABLE=2.4.2 2.4.3 # provide the executable names for all the acceptable versions # (and the target version) below ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] Zope Tests: 8 OK, 1 Failed
Summary of messages to the zope-tests list. Period Wed Dec 6 12:00:00 2006 UTC to Thu Dec 7 12:00:00 2006 UTC. There were 9 messages: 9 from Zope Unit Tests. Test failures - Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:37:50 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006769.html Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:30:20 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006764.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:31:50 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006765.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:33:20 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006766.html Subject: OK : Zope-2.7 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:34:50 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006767.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:36:20 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006768.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:39:20 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006770.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:40:50 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006771.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Wed Dec 6 21:42:21 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006772.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] MailHost with SSL
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 PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 6. Dezember 2006 21:48:24 +0100 Ferhat Ayaz wrote: On Dec 6, 2006, at 9:38 PM, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 6. Dezember 2006 20:21:19 +0100 Ferhat Ayaz wrote: Oh, you should belive me. It appears just 'after' adding SecureMailHost to the Folder. (I'm not coding, just adding new Zope Object via management Interface) After then you can configure user/password. Where is the problem? You also don't have to fill in your creditcard number first when entering an online shop. With MailHost, you can do it! I'm _configuring_ a server (in this case my MailHost) but not _buy_ a server. You did not get the punch line :-) The dropdownmenu shows only the old MailHost and not the new added SecureMailHost instance while configuring the Mail Template Likely you have to massage the code in order to check for the 'meta_type' of the SecureMailHost instead of the 'meta_type' for the standard Zope Mailhost. Reading and analyzing the code is always a good idea to track down such issues. I am pretty sure that there is some code using superValues() - grep -r is your best friend in such a case. hmm. Ok, thanks. I thought it will much eleganter to ask for some experience. I want use the product and not refactor the code. Modifying likely one line of code is elegant enough. If you want a better car you have to pimp it. If you can't pimp it yourself: either don't try it or let someone else pimp it for you. Got the punch line now? - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFd6rICJIWIbr9KYwRAi7PAJ9ZJFmcumI9/Xng7MyPEN8FUjVGJACfdSDT xTeRJnsvJo0J/oIssU+1IIU= =R65g -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 ) - Everyone is raving about the all-new Yahoo! Mail beta.___ 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] MailHost with SSL
-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 ask for existing solutions. If possible invent the wheel again.! Thanks for your shopping and car examples :) That's how it goes - either you lookup resources by name or by type. In the Zope 3 world you would lookup for a service by interface or check for an adapter - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFd9RhCJIWIbr9KYwRAtSeAKDJoI0PjL6dJ7aMtiJvJZ0TSk/BjgCdHelF SCWve5nPC+jGPFutyxje4FQ= =gFOm -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] MailHost with SSL
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 2. Has anyone done any work in making MailHost and friends into utilities and implement an interface? Once that's done, these kinds of problems simply go away... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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
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] changing the meta_type for python product class
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 are not persisted. When you change the attribute on the class, all class instances will see the change. Attributes defined on instance level are persisted. If you later change the value used to initialize the attribute, only newly created instances will get this new value; old instances will retain the old value. meta_type is usually defined on class level. This is also the case in your situation -- as you see the value changing, when you change the class definition. Also, I don't understand why if I explicit change the meta_type property for the old instance (e.g. a method of MyClass that is called via URL) still nothing happens? If you change meta_type on a specific instance, then it will stick and no longer follow any modifications in the class. I also tried to add the following lines to the MyClass: _properties = ( Folder._properties + ( {'id': 'meta_type', 'type': 'string', 'mode': 'w'}, ) ) In the Properties tab for both instances the same value is shown for the meta_type property. Only after you changed the properties at least once, become the properties instance level attributes (there might even be an optimization that a property is not written when its value did not change. In this case, you would need to change the properties value in order to make it an instance attribute). Up to that point, the default value defined on class level is used. -- Dieter ___ 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] Zope/Cache/Memory
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 I have to manually clear the cache or else zope eventually crashes with an out of memory error. There are 4GB of ram on the server. The same issue arises when I catalog the objects. I am trying maintain as much speed as possible, so I do not want to catalog until the end of the import. Is there a way to programmatically clear the cache during a large indexing to avoid out of memory errors? A ZODB Connection has the method cacheGC() which you can call to start a cache garbage collection. As others already pointed out, it is implicitely called during large catalog operations -- controlled by the so called subtransaction threshold. Note that in early versions of ZODB 3.4, there was a bug preventing the call to cacheGC at subtransaction boundaries. -- Dieter ___ 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 )