Re: [Zope] zope.conf question

2006-04-25 Thread David Pratt
Hi Dieter. Thank you for your reply. Would that still be around somewhere? Lately I have just been doing a make on the trunk and copying the packages from the src folder to my platform's python site-packages. It would be great if zope were a regular python distribution with a zopemanager utili

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread jpenny
I think that your problem is in the fact that you have fed them all in one long string (and may have autocommit on.) If they were separate ZSQL methods, they would, in my experience, roll back. I recommend separating them into separate methods, with one insert per method. jim penny [EMAIL PROT

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Philip Kilner
Hi Michael, Maslak, Michael wrote: > How can I detect failure and maintain atomicity? > You may get more responses to this on the Zope-DB list - as well as other RDBMS + Zope users, the eGenix guys are active over there (or as active as you can be on such a quiet list). -- Regards, PhilK E

Re: [Zope] zope unresponsive

2006-04-25 Thread Dieter Maurer
Andy Altepeter wrote at 2006-4-24 14:26 -0500: > ... >I'm experiencing hanging issues with my Zope-2.8.6+zeo setup/ RHEL 4. The >hanging isn't categorized by 100% cpu usage. Actually, I had the same issues >using 2.8.5, but I've upgraded since then. Here's the situation: > >I have one zeo client

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Dieter Maurer
Maslak, Michael wrote at 2006-4-25 10:38 -0400: > >For some reason I thought ZSQL method calls were atomic, but they appear >otherwise. Your database decides whether they are atomic or not. It is not a ZSQL feature. > ... >Using an eGenix mxODBC Database Connection at >/Database/PoPy_database_co

Re: [Zope] zope.conf question

2006-04-25 Thread Dieter Maurer
David Pratt wrote at 2006-4-24 18:29 -0300: >Is there a way to create an INSTANCE_HOME variable in zope.conf more >dynamically than hardcoding the path. I want an app to be platform >portable so this will be different? I fear, this is not the case with standard "ZConfig". A long time ago, I pos

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Philip Kilner
Hi Floyd, Floyd May wrote: >> Like Michael, I had understood that ZSQL database transactions were tied >> into Zope transactions, and would fail or succeed as a whole. Like him, >> I have found that - at least with this combination of DA & RDBMS - this >> is not so. I work around it, as I always d

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Floyd May
Philip Kilner wrote: Hi Andreas, Andreas Jung wrote: For some reason I thought ZSQL method calls were atomic, but they appear otherwise. What do you mean by atomic? ZSQL are handled by the database adaper which is usually tied to the transaction manager of the ZODB. I'm too tired to find th

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Philip Kilner
Hi Andreas, Andreas Jung wrote: >> For some reason I thought ZSQL method calls were atomic, but they appear >> otherwise. > > What do you mean by atomic? ZSQL are handled by the database adaper > which is usually tied to the transaction manager of the ZODB. > I'm too tired to find the words, so

Re: [Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Andreas Jung
--On 25. April 2006 10:38:30 -0400 "Maslak, Michael" <[EMAIL PROTECTED]> wrote: For some reason I thought ZSQL method calls were atomic, but they appear otherwise. What do you mean by atomic? ZSQL are handled by the database adaper which is usually tied to the transaction manager of the

Re: [Zope] pointers in zope (newbie question)

2006-04-25 Thread Andreas Jung
--On 25. April 2006 19:17:11 +0200 thomas desvenain <[EMAIL PROTECTED]> wrote: hello, i need to have the same object at different places, more properly, i need to refer an object at different places, in different folders, of my zope application Look in the mailinglist archive (of the las

[Zope] pointers in zope (newbie question)

2006-04-25 Thread thomas desvenain
hello, i need to have the same object at different places, more properly, i need to refer an object at different places, in different folders, of my zope application (i use formulator, and i would like that when i modify properties of the "same" field in different forms, all the others are updat

[Zope] Atomic ZSQL on Zope 2.7.5

2006-04-25 Thread Maslak, Michael
For some reason I thought ZSQL method calls were atomic, but they appear otherwise.   Using an eGenix mxODBC Database Connection at /Database/PoPy_database_connection to a SQL Server 2000 back end, I have created a Python script to write SQL commands and feed them in one large string:  

[Zope] coercing to Unicode: need string or buffer, NoneType found

2006-04-25 Thread Dennis Allison
Zoe 2.9.0, Python 2.4.2 ## Script (Python) "ascript" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## root = container.restrictedTraverse('/') objs = root.ZopeFind(container.this(), obj_metatypes=['Ex

Re: [Zope] keeping files in the local filesystem

2006-04-25 Thread gf
On 4/24/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: > gf wrote at 2006-4-24 07:28 -0600: > > ... > >I have come across several products (e.g. ExternalFile) for keeping > >files in the local filesystem. > >I was wondering about the wisdom of keeping objects, such as images, > >dtml documents, and p

Re: [Zope] Zope crashes on request of certain page

2006-04-25 Thread Sven Jacobs
The readme just tells me Just remove "Unauthorized" from the list of ignored exceptions. I have no idea where to find this list. Is it a config file or somehwere hidden within the management interface of Zope? Ok, sorry, found it myself. I was looking on the file system not in the Zope DB

Re: [Zope] Zope crashes on request of certain page

2006-04-25 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25 Apr 2006, at 10:16, Sven Jacobs wrote: Just remove "Unauthorized" from the list of ignored exceptions. I have no idea where to find this list. Is it a config file or somehwere hidden within the management interface of Zope? Also there is

Re: [Zope] Zope crashes on request of certain page

2006-04-25 Thread Sven Jacobs
You read the installation instructions for "VerboseSecurity". It (hopefully) tells you that you have to activate Python implemented Zope Security, I extracted the archive into the Products directory of the instance home. The product now is listed under installed products. to reconfigure the

Re: [Zope] ordinal not in range error in StringIO.py

2006-04-25 Thread Andreas Jung
--On 25. April 2006 10:25:45 +0300 Roman Susi <[EMAIL PROTECTED]> wrote: hi! My code produces the following traceback > when frontpage is published. I have analysed self.buflist and it seems that unicode strings are mixed with usual strings. Unicode strings come from .mo file. So, the questi

[Zope] ordinal not in range error in StringIO.py

2006-04-25 Thread Roman Susi
hi! My code produces the following traceback File "/opt/Zope-2.9.1/lib/python/ZPublisher/Publish.py", line 40, in call_object result=apply(object,args) # Type s to step into published object. File "/var/zope-2.9/Products/Five/browser/metaconfigure.py", line 403, in __call__ return self.