[Zope-Checkins] SVN: zdaemon/trunk/ Updated release info:

2007-01-10 Thread Jim Fulton
Log message for revision 71854: Updated release info: New Features: - Added support for setting environment variables in the configuration file. This is useful when zdaemon is used to run programs that need environment variables set (e.g. LD_LIBRARY_PATH). - Added a

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py The setUp and tearDown methods are owned by ZopeTestCase.

2007-01-10 Thread Stefan H. Holek
Log message for revision 71859: The setUp and tearDown methods are owned by ZopeTestCase. Changed: U Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py -=- Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

[Zope-Checkins] SVN: Products.Five/branches/1.5/ prepare release

2007-01-10 Thread Philipp von Weitershausen
Log message for revision 71860: prepare release Changed: U Products.Five/branches/1.5/CHANGES.txt U Products.Five/branches/1.5/INSTALL.txt -=- Modified: Products.Five/branches/1.5/CHANGES.txt === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ - made room for Five trunk

2007-01-10 Thread Yvo Schubbe
Log message for revision 71870: - made room for Five trunk Changed: _U Zope/trunk/lib/python/Products/ -=- Property changes on: Zope/trunk/lib/python/Products ___ Name: svn:externals - Five-r 71820

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/ - moved Five trunk

2007-01-10 Thread Yvo Schubbe
Log message for revision 71873: - moved Five trunk Changed: A Zope/trunk/lib/python/Products/Five/ -=- Copied: Zope/trunk/lib/python/Products/Five (from rev 71872, Products.Five/trunk) ___ Zope-Checkins maillist - Zope-Checkins@zope.org

[Zope-Checkins] SVN: Products.Five/trunk/ Five trunk was moved to Zope/trunk/lib/python/Products/Five

2007-01-10 Thread Yvo Schubbe
Log message for revision 71874: Five trunk was moved to Zope/trunk/lib/python/Products/Five Changed: D Products.Five/trunk/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins

[Zope-Checkins] SVN: Products.Five/trunk/README.txt - added file that explains what happened with the trunk

2007-01-10 Thread Yvo Schubbe
Log message for revision 71877: - added file that explains what happened with the trunk Changed: A Products.Five/trunk/README.txt -=- Added: Products.Five/trunk/README.txt === --- Products.Five/trunk/README.txt 2007-01-10

[Zope-Checkins] SVN: zdaemon/trunk/src/zdaemon/ Accept duplicate command-line options to work with scripts that embed

2007-01-10 Thread Jim Fulton
Log message for revision 71890: Accept duplicate command-line options to work with scripts that embed configuration options, such as the name of the configuration file. Changed: U zdaemon/trunk/src/zdaemon/tests/tests.py U zdaemon/trunk/src/zdaemon/zdctl.py U

[Zope-Checkins] SVN: zdaemon/trunk/ Updated release info.

2007-01-10 Thread Jim Fulton
Log message for revision 71892: Updated release info. Changed: U zdaemon/trunk/CHANGES.txt U zdaemon/trunk/setup.py -=- Modified: zdaemon/trunk/CHANGES.txt === --- zdaemon/trunk/CHANGES.txt 2007-01-10 18:28:09 UTC

[Zope-dev] Zope Tests: 5 OK, 2 Failed

2007-01-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Jan 9 12:00:00 2007 UTC to Wed Jan 10 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Jan 9

[Zope-dev] [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module. Unfortunately, this works very

[Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Martijn Faassen
Dieter Maurer wrote: I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module.

[Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Philipp von Weitershausen
Dieter Maurer wrote: I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module. That is an

[Zope-dev] Re: Zope 2.10.2 coming up

2007-01-10 Thread yuppie
Hi! Philipp von Weitershausen wrote: yuppie wrote: The Zope 2.10 branch still uses Five 1.5.1. There are a few changes on the Five 1.5 branch (including a security fix) which should become part of Zope 2.10.2. I volunteer to resolve this as follows: Five releases are now linked tightly

Re: [Zope-dev] Re: Zope 2.10.2 coming up

2007-01-10 Thread Andreas Jung
--On 10. Januar 2007 18:28:42 +0100 yuppie [EMAIL PROTECTED] wrote: Hi! Philipp von Weitershausen wrote: yuppie wrote: The Zope 2.10 branch still uses Five 1.5.1. There are a few changes on the Five 1.5 branch (including a security fix) which should become part of Zope 2.10.2. I

[Zope-dev] Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
Martijn Faassen wrote at 2007-1-10 11:45 +0100: I'm a bit surprised why the huge [warning] is necessary. What I understand you're saying is that you cannot use the component architecture before it's done initializing. The warning comes from bad experience. I have tested my

[Zope-dev] Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-1-10 15:40 +0100: ... Things changed a bit after Zope 2.8/X3 3.0. Nowadays, the Component Architecture doesn't need any setup anymore and you can do registrations on import. Very good! I'd still recommend against that. Why? ... That's because Five

Re: [Zope-dev] Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Fred Drake
On 1/10/07, Dieter Maurer [EMAIL PROTECTED] wrote: *It* must be informed whenever it is used in a different thread. Perhaps it could use some thread-local data to keep track of this? threading.local comes to mind. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Every sin is the result

[Zope] ZSQL Methods and transaction control

2007-01-10 Thread robert rottermann
Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. I understand that there is a way to handle transaction controll in the ZMySQL

[Zope] [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module. Unfortunately, this works very

[Zope] Selenium zodb?

2007-01-10 Thread Peter Bengtsson
How can I run Zope in a non-persistent way so that all transactions are aborted and so that I can run a big fat Selenium script in Firefox without having to manually undo everything the Selenium script has done? Kind of like ZopeTestCase works when you run it. -- Peter Bengtsson, work

Re: [Zope] Values lost when restarting

2007-01-10 Thread Michael Bernstein
On Tue, 2007-01-09 at 17:09 +0100, Andreas Jung wrote: --On 9. Januar 2007 17:06:24 +0100 Jonas Nielsen [EMAIL PROTECTED] wrote: The Zope Bible says something about calling self.__changed__(1) after updating the value but this doesn't seem to work even though the objects inherits from

Re: [Zope] Selenium zodb?

2007-01-10 Thread Martin Aspeli
Peter Bengtsson wrote: How can I run Zope in a non-persistent way so that all transactions are aborted and so that I can run a big fat Selenium script in Firefox without having to manually undo everything the Selenium script has done? Kind of like ZopeTestCase works when you run it.

[Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Martijn Faassen
Dieter Maurer wrote: I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module.

[Zope] Reminder: Early Bird Registration for PyCon Ending Soon

2007-01-10 Thread Jeff Rush
Greetings. As the co-chair for the upcoming Python conference, being held in Dallas (Addison) Texas, I want to remind folk to register before early bird registration prices end. The event is the fifth international Python Conference, being held Feb 23-25, 2007 at the Marriott-Quorum in

[Zope] FTP acquisition problem with Zope 2.10.1

2007-01-10 Thread Marcus Schopen
Hi, I've installed a fresh Zope 2.10.1 and noticed a strange behaviour when connectiong via FTP: Through the ZMI I've created a Folder /A with a DTMLDocument a and an empty Subfolder B: / -/A ---a -/B If I connect via FTP to the server and trying to upload an ASCII file a to the folder /A/B it

[Zope] Re: Values lost when restarting

2007-01-10 Thread Jonas Nielsen
Andreas Jung wrote: self._p_changed = 1 Thank you :-) ___ 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

Re: [Zope] Twiddler

2007-01-10 Thread Chris Withers
Paul Winkler wrote: Twiddler also looks very similar to the Meld family. Looks nice, but I haven't had time to get a sense of what distinguishes it from meld3. Thanks, it is similar to meld3 but was developed totally separately from it. I've put a lot of effort into getting the interfaces

Re: [Zope] Selenium zodb?

2007-01-10 Thread Chris Withers
Martin Aspeli wrote: Peter Bengtsson wrote: How can I run Zope in a non-persistent way so that all transactions are aborted and so that I can run a big fat Selenium script in Firefox without having to manually undo everything the Selenium script has done? Kind of like ZopeTestCase works

Re: [Zope] FTP acquisition problem with Zope 2.10.1

2007-01-10 Thread Marcus Schopen
Hi, Am Mittwoch, den 10.01.2007, 12:39 +0100 schrieb Marcus Schopen: I've installed a fresh Zope 2.10.1 and noticed a strange behaviour when connectiong via FTP: Through the ZMI I've created a Folder /A with a DTMLDocument a and an empty Subfolder B: / -/A ---a -/B If I connect via

[Zope] which python version for Zope 2.9.6

2007-01-10 Thread Marcus Schopen
Hi, is it a problem to use ubuntu's (6.10) standard python 2.4.4c1 for Zope 2.9.6 or Zope 2.10.1 ? If not which version should I build from source? Thanks, Marcus ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

[Zope] Integrating METAL into Zope Product

2007-01-10 Thread Brian Brinegar
I've got a Zope product which will render itself using standard_html_header and standard_html_footer if they exist. I would like this same product to look for a specific Page Template (ptMaster) and render itself using a macro and filling a slot with it's contents. Any pointers/examples on

[Zope] Re: which python version for Zope 2.9.6

2007-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus Schopen wrote: is it a problem to use ubuntu's (6.10) standard python 2.4.4c1 for Zope 2.9.6 or Zope 2.10.1 ? If not which version should I build from source? It will work fine. I wouldn't, however, use it in production, for two reasons:

[Zope] store dict in session

2007-01-10 Thread Dennis Schulz
According to the zope book it should be possible to store dicts in session. When I try to assign a dictionary to a ordinary zope 2 session, with lists there is no problem. why?: requestlist = {} for i in self.request.form: key = i value =

[Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Philipp von Weitershausen
Dieter Maurer wrote: I tried to use Zope3 events to get informed when requests start and end. One of our modules (the interface module to jpype) requires such a notification for reliable work. Therefore, it tried to register the corresponding subscriptions on import of this module. That is an

Re: [Zope] store dict in session

2007-01-10 Thread Maciej Wisniowski
According to the zope book it should be possible to store dicts in session. When I try to assign a dictionary to a ordinary zope 2 session, with lists there is no problem. why?: (...) base.__name__ TypeError: can't pickle instancemethod objects ) Seems that you're assigning unpickable

[Zope] Re: store dict in session

2007-01-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maciej Wisniowski wrote: According to the zope book it should be possible to store dicts in session. When I try to assign a dictionary to a ordinary zope 2 session, with lists there is no problem. why?: (...) base.__name__ TypeError: can't

[Zope] ISO-8859-5 (cyrillic) and TextIndexNG2

2007-01-10 Thread mark hellewell
Hi there, wondering if you might be able to help me? I've got plain text documents that contain iso-8859-5 chracters (not utf-8) and I'd like to get TextIndexNG2 to catalog their contents. I've tried creating an Index with default encoding set to iso-8859-5 but no joy, the cataloger won't

Re: [Zope] ISO-8859-5 (cyrillic) and TextIndexNG2

2007-01-10 Thread Andreas Jung
--On 10. Januar 2007 17:10:03 + mark hellewell [EMAIL PROTECTED] wrote: Hi there, wondering if you might be able to help me? I've got plain text documents that contain iso-8859-5 chracters (not utf-8) and I'd like to get TextIndexNG2 to catalog their contents. We have TXNG V3.1.13!

Re: [Zope] ISO-8859-5 (cyrillic) and TextIndexNG2

2007-01-10 Thread mark hellewell
Hi On 1/10/07, Andreas Jung [EMAIL PROTECTED] wrote: --On 10. Januar 2007 17:10:03 + mark hellewell [EMAIL PROTECTED] wrote: I've tried creating an Index with default encoding set to iso-8859-5 but no joy, the cataloger won't catalog the docs! won't catalog means what? Provide a

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Tino Wildenhain
robert rottermann schrieb: Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. Can you elaborate on that? I dont see a reason

Re: [Zope] store dict in session

2007-01-10 Thread Peter Bengtsson
Quite possible that you have a form with something like this: input name=user.age:record value=50 / input name=user.name:record value=Dee / In python, if you do this:: def saveUser(self, user, REQUEST): print user # will print {'age':'50', 'name':'Dee'} REQUEST.SESSION.set('user_data',

Re: [Zope] Integrating METAL into Zope Product

2007-01-10 Thread Peter Bengtsson
Define it as a class attribute class MyProduct(...): ptMaster = PageTemplateFile('ptMaster', globals()) index = PageTemplateFile('index', globals()) ptMaster.pt will then have to look like this:: html metal:define-macros=headerfooter body metal:define-slot=body/body /html and

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Peter Bengtsson
Are you sure it doesn't do it out of the box? I know it does for ZPsycopgDA which is the Postgresq Zope database adapter. With that one I don't have to come near handling the SQL transactions. What Zope commits and rollsback is done for SQL too automatically. robert rottermann wrote: Hi

Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
Martijn Faassen wrote at 2007-1-10 11:45 +0100: I'm a bit surprised why the huge [warning] is necessary. What I understand you're saying is that you cannot use the component architecture before it's done initializing. The warning comes from bad experience. I have tested my

Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-1-10 15:40 +0100: ... Things changed a bit after Zope 2.8/X3 3.0. Nowadays, the Component Architecture doesn't need any setup anymore and you can do registrations on import. Very good! I'd still recommend against that. Why? ... That's because Five

Re: [Zope] TypeError when copy FS python script to custom folder

2007-01-10 Thread Dieter Maurer
Edmund Moseley wrote at 2007-1-9 16:03 -0500: I am in the process of trying to add RAMCaches to my python scripts, and wanted to test it out TTW via custom. However, whenever I make a copy of my FS python script to custom, and then view the object which uses this script, I get the following

Re: [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Dieter Maurer
robert rottermann wrote at 2007-1-10 09:00 +0100: ... I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. If you know what you do, then you

Re: [Zope-dev] Re: [Zope] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-10 Thread Fred Drake
On 1/10/07, Dieter Maurer [EMAIL PROTECTED] wrote: *It* must be informed whenever it is used in a different thread. Perhaps it could use some thread-local data to keep track of this? threading.local comes to mind. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Every sin is the result

[Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I am implementing a tool to handle userdata that is stored in a MySQL db. The underlaying logic of the stored procedures used to maintain the db content dictate that I have to control the transactions myself. I understand that there is a

Re: [Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Charlie Clark
Am 10.01.2007, 13:00 Uhr, schrieb robert rottermann [EMAIL PROTECTED]: I understand that there is a way to handle transaction control in the ZMySQL methods. However I find no documentation at all on how to use it. This is incorrect. ZSQL methods are called within Zope transactions so you

Re: [Zope-DB] [Zope] ZSQL Methods and transaction control

2007-01-10 Thread Maciej Wisniowski
thanks charlie, so that means, that the _commit and _abort methods are only for zope's transaction controll. Yes, and with good reason. But I think that if you know what your'e doing you may use them althought it may be tricky. It is better to try external method like Charlie suggested for