Re: [Zope-dev] Dynamically altering Product methods

2002-11-21 Thread Steve Alexander
* It is my understanding (after long analysis of the source) that what I'm doing with self._security is okay. I mean, it seems to me I should be able to redeclare my permission settings at run-time. Is this correct, or am I missing something? Acquisition is still rough to me. This has little

[Zope-dev] Security problems importing from python package.

2002-11-21 Thread Chris Withers
Hi, I'm trying to get stripogram working from Script(Pythons). I thought I had it, but it appears I don't. I added the following in the __init__.py of the stripogram package: try: from AccessControl import ModuleSecurityInfo,allow_module except ImportError: # no Zope around raise

[Zope-dev] PathIndex unindex fix

2002-11-21 Thread seb bacon
Anyone object to me changing PathIndex so it swallows exceptions and logs them when unindexing content? On upgrading to Zope 2.6 some if the unindex paths seem to have got hosed, and I don't want this breaking my site. ___ Zope-Dev maillist -

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread Jens Vagelpohl
+1 from me... most other PluginIndexes already fail gracefully when something to be unindexed has disappeared. IMHO all indexes should behave that way. jens On Thursday, Nov 21, 2002, at 08:24 US/Eastern, seb bacon wrote: Anyone object to me changing PathIndex so it swallows exceptions and

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread Sidnei da Silva
On Thu, Nov 21, 2002 at 08:52:41AM -0500, Jens Vagelpohl wrote: | +1 from me... most other PluginIndexes already fail gracefully when | something to be unindexed has disappeared. IMHO all indexes should | behave that way. Now that you mentioned, I got an error while trying to index NZO using

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread Andreas Jung
Please file a collector issue and assign it to me. -aj --On Donnerstag, 21. November 2002 13:24 + seb bacon [EMAIL PROTECTED] wrote: Anyone object to me changing PathIndex so it swallows exceptions and logs them when unindexing content? On upgrading to Zope 2.6 some if the unindex paths

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread Chris Withers
Sidnei da Silva wrote: Now that you mentioned, I got an error while trying to index NZO using ZCTextIndex, so I guess it is suffering from the same issue. Anyone can confirm? No, no, failure during _indexing_ is a good thing (tm). Failure during _unindexing_ is a bad thing (r). cheers,

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread Leonardo Rochael Almeida
On Thu, 2002-11-21 at 11:24, seb bacon wrote: Anyone object to me changing PathIndex so it swallows exceptions and logs them when unindexing content? This sounds REALLY LOUD ALARMS in my head. There is a class of errors (subclasses of ConflictError) that should never be ingored because they're

[Zope-dev] adding properties to instances v. classes

2002-11-21 Thread Jamie Heilman
There's this somewhat annoying issues surrounding objects that declare removable properties in their classes, in that if you remove them, you can't add them again because many times a class variable of the same name already exists. (atleast thats my understanding of it, I suppose I could be

Re: [Zope-dev] PathIndex unindex fix

2002-11-21 Thread seb bacon
I've already fixed it; should I commit it or do you want the patches? Andreas Jung wrote: Please file a collector issue and assign it to me. -aj --On Donnerstag, 21. November 2002 13:24 + seb bacon [EMAIL PROTECTED] wrote: Anyone object to me changing PathIndex so it swallows exceptions

Re: [Zope-dev] Dynamically altering Product methods

2002-11-21 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I then get the following error: 2002-11-20T12:20:45 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\n\xa5' Traceback (innermost last): Module ZODB.Connection, line 533, in setstate TypeError: ('expected 1 arguments, got 0',

Re: [Zope-dev] adding properties to instances v. classes

2002-11-21 Thread Dieter Maurer
Jamie Heilman writes: ... I'm wondering if there's any reason why simply adding the properties and instance variables to the instance within __init__ would be a bad thing for properties that you want to declare removable. The restriction is a precaution against an accidental overriding of

Re: [Zope-dev] adding properties to instances v. classes

2002-11-21 Thread Jamie Heilman
An additional declaration might help, something like _addableProperties. Names specified in this sequence could be allowed as property names unless the instance (itself) already has an attribute of this name. Of course, something like this needs to be implemented and is currently not

[Zope-dev] Zope Caches

2002-11-21 Thread Brian R Brinegar
Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads each. I want to know if we have 3 copies of the cache, or 12 copies of the cache. Thanks, -Brian

Re: [Zope-dev] Zope Caches

2002-11-21 Thread Shane Hathaway
Brian R Brinegar wrote: Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads each. I want to know if we have 3 copies of the cache, or 12 copies of the cache. If you're talking about

Re: [Zope-dev] Zope Caches

2002-11-21 Thread Brian R Brinegar
Not RAM Cache managers, but Database caches. -Brian On Thu, 21 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Okay, I'm trying to better understand Caching within Zope. Is a cache created for each Zope Thread? Or one per Zope instance? We have 3 ZEO Clients with 4 Threads

Re: [Zope-dev] Zope Caches

2002-11-21 Thread Shane Hathaway
Brian R Brinegar wrote: Not RAM Cache managers, but Database caches. In that case we still haven't narrowed it down. :-) You have 12 in-memory ZODB caches (they can't be shared) and 3 on-disk ZEO caches. Depending on your site, the ZODB cache can consume a lot of RAM, so Zope 2.6 has a

Re: [Zope-dev] Zope Caches

2002-11-21 Thread Brian R Brinegar
We have diskless ZEO clients (Netboot). There is really no reason for our ZEO clients to write their caches to the disk (RAM Disk). Can we turn this off? To free up RAM for the other caches? Thanks, -Brian On Thu, 21 Nov 2002, Shane Hathaway wrote: Brian R Brinegar wrote: Not RAM Cache

Re: [Zope-dev] Zope Caches

2002-11-21 Thread Guido van Rossum
We have diskless ZEO clients (Netboot). There is really no reason for our ZEO clients to write their caches to the disk (RAM Disk). Can we turn this off? To free up RAM for the other caches? That's a new use scenario for me. You can't turn the ZEO cache off. But I think you misunderstand the