[Zope-dev] Re: test.py

2004-03-11 Thread yuppie
Hi! Tres Seaver wrote: yuppie wrote: Some grep results from Zope HEAD: setup.py: #! /usr/bin/env python test.py: #! /usr/bin/env python2.2 utilities\check_catalog.py: #!/usr/bin/env python2.1 utilities\requestprofiler.py: #!/usr/bin/env python

[Zope-dev] help

2004-03-11 Thread Vandana Bajaj
hi after installing pysycopg following the steps as mentioned in the INSTALL file of pyscopg when i started Zope i got following error. Coluld anyone please guide me about it thanks you Vandana home4:/Zope-2.6.2-linux2-x86 # ./start -- 2004-03-11T15:45:49 INFO(0) zdaemon Started subprocess:

Re: [Zope-dev] help

2004-03-11 Thread Federico Di Gregorio
Il gio, 2004-03-11 alle 11:30, Vandana Bajaj ha scritto: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype you probably built psycopg using python 2.2/2.3 and your zope still uses python 2.1. see psycopg's FAQ about building with the python

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-11 Thread Chris Withers
Marco Bizzarri wrote: I'm trying something inspired to that at the moment... I succeeded in installing an hack, very inspired from your code (but at a much simpler level) and some code in the SecurityManager, ?! where I mantain a dictionary of connections, indexed by the result of

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris Withers
Chris McDonough wrote: I think the transaction in which the error code operates in should be aborted. Well, what if you want to make a note in some object (say the error_log), that something bad happened? What if you want to make a change in the error handler? My view is that the error handler

Re: [Zope-dev] Re: [ZODB-Dev] Re: BTrees strangeness (was Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris Withers
Chris McDonough wrote: On Wed, 2004-03-10 at 19:30, Paul Winkler wrote: I suggested doing a bug day as part of the pycon z2 sprint, but we haven't really discussed the various sprint proposals in depth yet. Since you and I are going to be there on Saturday and Sunday, why don't we do this on

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-11 Thread Marco Bizzarri
On Thu, Mar 11, 2004 at 11:49:34AM +, Chris Withers wrote: Marco Bizzarri wrote: I'm trying something inspired to that at the moment... I succeeded in installing an hack, very inspired from your code (but at a much simpler level) and some code in the SecurityManager, ?! Look in

Re: [Zope-dev] help

2004-03-11 Thread Chris Withers
(Learn to use better subject lines!) Vandana Bajaj wrote: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype Looks like you didn't manage to compile it properly, maybe you compiled it to the wrong python version... Chris -- Simplistix -

Re: [Zope-dev] Re: [ZODB-Dev] Re: BTrees strangeness (was Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris McDonough
Saturday Mar 20, Sun Mar 21... On Thu, 2004-03-11 at 06:54, Chris Withers wrote: Chris McDonough wrote: On Wed, 2004-03-10 at 19:30, Paul Winkler wrote: I suggested doing a bug day as part of the pycon z2 sprint, but we haven't really discussed the various sprint proposals in depth

Re: [Zope-dev] Product Access to Files

2004-03-11 Thread Chris Withers
I'm overriding '__getitem__' and using Python's os package to directly access the local file system. I just sniff the file name extension and set the response content-type, then return the contents of the named file. Simple and stupid. Ooo... I hope you're confident in what you're doing :-S Should

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris McDonough
On Thu, 2004-03-11 at 06:52, Chris Withers wrote: Well, what if you want to make a note in some object (say the error_log), that something bad happened? The error_log doesn't use persistent objects to keep its messages. What if you want to make a change in the error handler? If anyone had

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Toby Dickenson
On Thursday 11 March 2004 12:19, Chris McDonough wrote: What if you want to make a change in the error handler? If anyone had been depending on this behavior in their current error handlers, they would have seen weirdnesses in their applications like those being reported now. I have

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread alex
Hi Chris, On Tue, 9 Mar 2004, Chris McDonough wrote: But it seems I forget to install new Transience module to the new Zope instance. Should I? Yes, please! Sorry, it does not seems to work on my first attempt: Traceback (innermost last): * Module ZPublisher.Publish, line 163, in

Re: [Zope-dev] Product Access to Files

2004-03-11 Thread Ian Beatty
On 2004-03-11 7:04 AM, Chris Withers is reputed to have said: I'm overriding '__getitem__' and using Python's os package to directly access the local file system. I just sniff the file name extension and set the response content-type, then return the contents of the named file. Simple and

[Zope-dev] Re: test.py

2004-03-11 Thread Tres Seaver
yuppie wrote: So you propose to replace *all* the #! lines by #!/usr/bin/env python2.3 #!/usr/bin/python2.3 distutils will munge it anyway, if it installs the scripts. Tres. -- === Tres Seaver[EMAIL

Re: [Zope-dev] Re: test.py

2004-03-11 Thread Fred Drake
On Thursday 11 March 2004 10:40 am, Tres Seaver wrote: #!/usr/bin/python2.3 distutils will munge it anyway, if it installs the scripts. That won't work for a lot of developers, I'll bet, who have python2.3 installed in /usr/local/bin. The env hack is more reasonable for developers; since

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris McDonough
On Thu, 2004-03-11 at 08:32, [EMAIL PROTECTED] wrote: Hi Chris, On Tue, 9 Mar 2004, Chris McDonough wrote: But it seems I forget to install new Transience module to the new Zope instance. Should I? Yes, please! Sorry, it does not seems to work on my first attempt: Right. Could

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-11 Thread Kapil Thangavelu
fwiw, i think this is a viable solution (although you should not only scope connections to thread local but to da paths in the module level global) as there are problems with zope and das going away because of their volatiles.. it can lead to strange behavior, like say your in the midst of a long

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris McDonough
On Thu, 2004-03-11 at 07:29, Toby Dickenson wrote: I have applications that send emails in error handlers. MailHost isnt transactional today, but Ive always wanted it to be. I suppose that's true. If someone else doesn't do it first, during the bug day we'll try to support this use case,

[Zope-dev] Re: 2.7 assertion with CVS of this morning

2004-03-11 Thread leo
I seem to have a similar problem when using external editor on an archetype's RichWidget TextField : # Module ZPublisher.Publish, line 163, in publish_module_standard # Module Products.PlacelessTranslationService.PatchStringIO, line 45, in new_publish # Module ZPublisher.Publish, line 127, in

[Zope-dev] Using ObjectManager class

2004-03-11 Thread Serg
file min_all.py class min_all(SimpleItem.SimpleItem,ObjectManager): ... manage_options=(ObjectManager.manage_options + ({'label':'Edit Minimal', 'action':'manage_editMin_allForm'}, )) .. def addFoo(self,id,dn): "add Foo object to min_all object" O=Foo(id,dn) self._setObject(id,

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of =?iso-8859-1?q?experience Zope?= developer, please)

2004-03-11 Thread Paul Winkler
On Thu, Mar 11, 2004 at 12:29:51PM +, Toby Dickenson wrote: On Thursday 11 March 2004 12:19, Chris McDonough wrote: What if you want to make a change in the error handler? If anyone had been depending on this behavior in their current error handlers, they would have seen

[Zope-dev] How to create a product with all_meta_types and the name of the product

2004-03-11 Thread Garito
Hi all I would like to create a product knowing the name of these product. How to do it? I arrive to product but I don't know how to create it and set to de container With these code self['manage_addProduct']['product'].manage_addMyProductManageAdd(id, content) In the information