Re: [Zope-dev] How to add sections to zope.conf?

2004-07-16 Thread Chris Withers
Dieter Maurer wrote: You must extend the zopeschema.xml or let your process use a schema derived from zopeschema.xml (schema support some form of inheritance). Is there any way for a Product to do this or do I actually have to go and manually spank zopeschema.xml when I install my product? Chris

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Chris Withers
Brad Clements wrote: On 9 Jul 2004 at 21:17, Dieter Maurer wrote: Check whether the connection is maintained in a _v_ attribute (in this case, it is per thread). Otherwise, the connection would need to be maintained in a module global registry indexed with a DA id (e.g. its ZODB path). This is

[Zope-dev] manage_afterAdd +webdav + two times called

2004-07-16 Thread Kai Hoppert
Hi all, zope2.7.2-RC1 cmf 1.4.4 i tried and tested a bit around with webdav and noticed that manage_afterAdd is called two times in putting a file into Plone . Yea i know this is not the list for Plone but i think this is more a problem from zope, webdav and cmf. File

Re: [Zope-dev] Granularity of Persistent Objects

2004-07-16 Thread Lennart Regebro
Ian Beatty wrote: However, I don't know how to do this. Is it as simple as using a PersistentMapping where I'd normally use a standard Python dictionary? Well, yes. Or shall I wrap each one in a custom class that subclasses Persistent? That is usually an even better idea. And for big dictionaries,

[Zope-dev] mount a plonesite with zeo storage

2004-07-16 Thread Martino Salvato
hi, I'm just try to use Zope 2.7 and Plone with zeo storage support. and I would like to put a CMFPlone site into azeo clientstorage to mount in a zope instance. I haveadded in my zeo.conf filestorage plonesite path $INSTANCE/var/plonesite.fs/filestorage and in zope.conf zodb_db plonesite

Re: [Zope-dev] Granularity of Persistent Objects

2004-07-16 Thread Ian Beatty
Or shall I wrap each one in a custom class that subclasses Persistent? That is usually an even better idea. And for big dictionaries, you may want to use the BTree objects for storage. So in my containing class, I just have class MyContainer( Persistent ): subObject = None

Re: [Zope-dev] manage_afterAdd +webdav + two times called

2004-07-16 Thread Florent Guillaume
Could you add this as a bug in the collector please ? http://collector.zope.org/Zope Florent In article [EMAIL PROTECTED] you write: Hi all, zope2.7.2-RC1 cmf 1.4.4 i tried and tested a bit around with webdav and noticed that manage_afterAdd is called two times in putting a file into

[Zope-dev] Re: [ZODB-Dev] Getting rid of ZODB versions (was Re: [ZWeb] Are Versions evil?)

2004-07-16 Thread Christian Robottom Reis
On Thu, Jul 15, 2004 at 06:09:29PM -0400, Jim Fulton wrote: Locks are important, however, in cases such as generating unique IDs based on integer attributes in a database. I don't know what this is. Well, let's say I wanted to have a unique ID for payments (people want to refer to them for

Re: [Zope-dev] Granularity of Persistent Objects

2004-07-16 Thread Florent Guillaume
In article [EMAIL PROTECTED] you write: Or shall I wrap each one in a custom class that subclasses Persistent? That is usually an even better idea. And for big dictionaries, you may want to use the BTree objects for storage. So in my containing class, I just have class

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Brad Clements
On 16 Jul 2004 at 8:57, Chris Withers wrote: This often means that many more database connections are opened than are actually necessary. And if you start timing out inactive database connectiosn on the database side, you're in for a world of pain and suffering. I branched ZOracleDA some

[Zope-dev] zope 2.7.1 on xp profesional

2004-07-16 Thread Chris Johnson
zopeError.txt I get this error on running runzope installed on xp profesional ibm thinkpad. Any idea what is happening ? cj C:\Zope-Instance\binrunzope.batc:\zopeError.txt C:\Program Files\Zope-2.7.1\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL mo dule is deprecated; please use fcntl

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Andy Dustman
On Fri, 16 Jul 2004 10:36:27 -0400, Brad Clements [EMAIL PROTECTED] wrote: The SAP folks say their adapter is multi-thread capable, but I've come to believe that only means that it's ok to open a connection in one thread and use it in another, but NOT to have 2 threads make requests on

[Zope-dev] zope 2.7.1 on xp profesional

2004-07-16 Thread Chris Johnson
I get this error on running runzope installed on xp profesional ibm thinkpad. Any idea what is happening ? cj C:\Zope-Instance\binrunzope.batc:\zopeError.txt C:\Program Files\Zope-2.7.1\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL mo dule is deprecated; please use fcntl

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread sathya
sqlrelay seems to hold some promise for connection pooling although I am not sure if theres support for sapdb Brad Clements wrote: On 16 Jul 2004 at 8:57, Chris Withers wrote: This often means that many more database connections are opened than are actually necessary. And if you start timing

Re: [Zope-dev] zope 2.7.1 on xp profesional

2004-07-16 Thread Tim Peters
[Chris Johnson] I get this error on running runzope installed on xp profesional ibm thinkpad. Any idea what is happening ? cj C:\Zope-Instance\binrunzope.batc:\zopeError.txt C:\Program Files\Zope-2.7.1\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated; please use

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Brad Clements
On 16 Jul 2004 at 11:38, Andy Dustman wrote: Also, two threads can' t open a connection at the same time because their connection table management isn't thread safe. That does suck, but it doesn't seem like an insurmountable problem for a DA. You just need a per-DA instance mutex which

[Zope-dev] Where are all the good docs?

2004-07-16 Thread Bryan Simmons
I've recently persuaded my company and our clients that Zope is THE way to go for Portal software. Now I find myself having to hack away at sources more and more to meed their needs. With that in mind, how can I find out something like what functions can be called from the context object? I've

Re: RewriteMaps inefficient (was: [Zope-dev] Apache Mod_rewrite question)

2004-07-16 Thread Dieter Maurer
Ganesha Shanmuganathan wrote at 2004-7-15 15:57 -0500: ... RewriteMap files with the same name are identified ... That is strange! It looks like a bug in mod_rewrite then. I checked the source and found that it does compare by map name. Thanks for your feedback But the cache is not taken from a

Re: [Zope-dev] How to add sections to zope.conf?

2004-07-16 Thread Dieter Maurer
Chris Withers wrote at 2004-7-16 08:52 +0100: Dieter Maurer wrote: You must extend the zopeschema.xml or let your process use a schema derived from zopeschema.xml (schema support some form of inheritance). Is there any way for a Product to do this or do I actually have to go and manually

Re: [Zope-dev] manage_afterAdd +webdav + two times called

2004-07-16 Thread Dieter Maurer
Kai Hoppert wrote at 2004-7-16 10:54 +0200: zope2.7.2-RC1 cmf 1.4.4 i tried and tested a bit around with webdav and noticed that manage_afterAdd is called two times in putting a file into Plone . Yea i know this is not the list for Plone but i think this is more a problem from zope, webdav and

[Zope-dev] Re: [ZODB-Dev] Getting rid of ZODB versions (was Re: [ZWeb] Are Versions evil?)

2004-07-16 Thread Dieter Maurer
Jim Fulton wrote at 2004-7-15 17:18 -0400: Dieter Maurer wrote: I don't think anyone find versions useful in cases where locks matter. With versions, if you get resource contention, someone loses. Yes, but hopefully the short running (inexpensive) and not the long running (expensive) process...

[Zope-dev] Re: [ZODB-Dev] Getting rid of ZODB versions (was Re: [ZWeb] Are Versions evil?)

2004-07-16 Thread Dieter Maurer
Christian Robottom Reis wrote at 2004-7-16 10:27 -0300: ... The database itself uses a short-lived lock to generate oids. Functionality which would be interesting if it were publically available to solve the aforementioned problem. The functionality to get OIDs is there. It is the new_oid

[Zope-dev] Re: [ZODB-Dev] Getting rid of ZODB versions (was Re: [ZWeb] Are Versions evil?)

2004-07-16 Thread Christian Robottom Reis
On Fri, Jul 16, 2004 at 07:50:48PM +0200, Dieter Maurer wrote: Christian Robottom Reis wrote at 2004-7-16 10:27 -0300: ... The database itself uses a short-lived lock to generate oids. Functionality which would be interesting if it were publically available to solve the aforementioned

[Zope-dev] Re: [ZODB-Dev] Getting rid of ZODB versions (was Re: [ZWeb] Are Versions evil?)

2004-07-16 Thread Christian Robottom Reis
On Fri, Jul 16, 2004 at 08:39:52PM +0200, Dieter Maurer wrote: In either case, if you have resource contention, you are probably out of luck. Luck is not a binary concept ;-) Our current most essential use case for Versions is reindexing large catalogs. Reindexing can take hours. It is

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Ganesha Shanmuganathan
Hi, On Fri, 2004-07-16 at 09:36, Brad Clements wrote: On 16 Jul 2004 at 8:57, Chris Withers wrote: This often means that many more database connections are opened than are actually necessary. And if you start timing out inactive database connectiosn on the database side, you're in for a

Re: [Zope-dev] Where are all the good docs?

2004-07-16 Thread Paul Winkler
On Fri, Jul 16, 2004 at 02:53:20PM -0400, Bryan Simmons wrote: I've recently persuaded my company and our clients that Zope is THE way to go for Portal software. Now I find myself having to hack away at sources more and more to meed their needs. With that in mind, how can I find out

Re: [Zope-dev] Where are all the good docs?

2004-07-16 Thread Paul Winkler
On Fri, Jul 16, 2004 at 05:44:46PM -0400, Paul Winkler wrote: On Fri, Jul 16, 2004 at 02:53:20PM -0400, Bryan Simmons wrote: I've recently persuaded my company and our clients that Zope is THE way to go for Portal software. Now I find myself having to hack away at sources more and more to

Re: [Zope-dev] Where are all the good docs?

2004-07-16 Thread Bryan Simmons
That product sure does open up a wealth of information but it really does me no good with understanding what context is and what functions apply to it On Fri, 16 Jul 2004 17:45:28 -0400, Paul Winkler [EMAIL PROTECTED] wrote: On Fri, Jul 16, 2004 at 05:44:46PM -0400, Paul Winkler wrote: On

Re: RewriteMaps inefficient (was: [Zope-dev] Apache Mod_rewrite question)

2004-07-16 Thread Ganesha Shanmuganathan
Hi Dieter, On Fri, 2004-07-16 at 13:10, Dieter Maurer wrote: Ganesha Shanmuganathan wrote at 2004-7-15 15:57 -0500: ... RewriteMap files with the same name are identified ... That is strange! It looks like a bug in mod_rewrite then. I checked the source and found that it does compare by map

Re: [Zope-dev] Where are all the good docs?

2004-07-16 Thread Paul Winkler
On Fri, Jul 16, 2004 at 07:37:01PM -0400, Bryan Simmons wrote: That product sure does open up a wealth of information but it really does me no good with understanding what context is and what functions apply to it context is a generic name for the current, er, context. e.g. if i visit