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

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

[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 www.fry-i

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

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

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

[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

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

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 cor

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 when

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

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

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

[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 = self.request.form[i]

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

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 obj

[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

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

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 w

Re: [Zope] store dict in session

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

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:: and index.pt:: BODY! Brian Brinegar wrote: I've got a Zope product which wil

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

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 registra

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 F

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 e

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

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. "Every sin is the result of a collaboratio

Re: [Zope] FTP acquisition problem with Zope 2.10.1

2007-01-10 Thread Chris Withers
Marcus Schopen wrote: 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"