Re: [Zope-dev] PathIndex unindex fix

2002-11-24 Thread Andreas Jung
If you have write access to the Zope CVS, go ahead. Thanks, Andreas --On Donnerstag, 21. November 2002 17:35 + seb bacon [EMAIL PROTECTED] wrote: 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.

Re: [Zope-dev] PathIndex unindex fix

2002-11-22 Thread Chris Withers
Leonardo Rochael Almeida wrote: If you are to ignore errors, please ignore specific errors that are known to happen. Please don't use a generic except. ...or re-raise only ConflictErrors. Hmmm... this issue is perhaps deeper than it first appeared. Are conflict errors swallowed by the other

[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

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] PathIndex doesn't index last part of path

2002-08-21 Thread sean . upton
, August 19, 2002 11:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] PathIndex doesn't index last part of path - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-21 Thread Andreas Jung
:49 Subject: RE: [Zope-dev] PathIndex doesn't index last part of path I'm all for putting together a proposal to do this, soliciting comments, and contributing to the effort. What would be the right venue for that? On the other hand, AFAIK, the addition of a depth query feature to PathIndex

RE: [Zope-dev] PathIndex doesn't index last part of path

2002-08-19 Thread sean . upton
otherwise. -Casey - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 6:22 PM Subject: [Zope-dev] PathIndex doesn't index last part of path This is mostly a question for AJ, but any input would be great. This bug bit me today

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-19 Thread Andreas Jung
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 00:58 Subject: RE: [Zope-dev] PathIndex doesn't index last part of path One thing that seems to be feature-broken about PathIndexes, though

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Andy McKay
If you call getObject, that actually does traversal anyway. Right, in that situation it would be pointless... You rock, Casey, thanks. I was thinking more about adding: def getMetadataFromPath(self, path): get metadata for an object using its path rid = self._catalog.uids[path]

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Casey Duncan
PROTECTED] To: Casey Duncan [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:54 AM Subject: Re: [Zope-dev] PathIndex doesn't index last part of path If you call getObject, that actually does traversal anyway. Right, in that situation it would be pointless... You rock, Casey

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Andy McKay
Woohoo my first check in ;) -- Andy McKay Agmweb Consulting http://www.agmweb.ca - Original Message - From: Casey Duncan [EMAIL PROTECTED] To: Andy McKay [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 12:14 PM Subject: Re: [Zope-dev] PathIndex doesn't index

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Dieter Maurer
Casey Duncan writes: A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Myroslav Opyr
Duncan [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:54 AM Subject: Re: [Zope-dev] PathIndex doesn't index last part of path If you call getObject, that actually does traversal anyway. Right, in that situation it would be pointless... You rock, Casey, thanks. I

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Casey Duncan
[EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 6:55 PM Subject: Re: [Zope-dev] PathIndex doesn't index last part of path Hi, Sorry, maybe I'm too late ;) but I have a note here. uid in Cataloc can be path but it can be any arbitrary unigue identifier. In system I'm working

[Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay
This is mostly a question for AJ, but any input would be great. This bug bit me today and is documented here: http://collector.zope.org/Zope/449/ISSUE_TRANSCRIPT/view I dont understand the brief argument against this one, it would make sense to me to able to pull an object out of the catalog

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 6:22 PM Subject: [Zope-dev] PathIndex doesn't index last part of path This is mostly a question for AJ, but any input would be great. This bug bit me today and is documented here: http

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 6:22 PM Subject: [Zope-dev] PathIndex doesn't index last part of path This is mostly a question for AJ, but any input would be great. This bug bit me today and is documented here: http

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay
[snip] Hmm ok, I can see those reasons. Unfortunately, ZCatalog does not expose this to the surface but you can write a trivial external method to do it. And I might entertain adding a ZCatalog API to do so if I had a good use case. Ah... I think this might be the best idea, I'll add that in

[Zope-dev] PathIndex

2001-11-21 Thread brian.r.brinegar.1
The search method of PathIndex class returns varying types depending on the success of the search. If the search fails a list object is returned, if the search succeeds an object of type BTrees.IIBTree.IISet is returned. This causes a problem in _apply_index in PathIndex when PathIndex tries

Re: [Zope-dev] PathIndex

2001-11-21 Thread Wolfram Kerber
Let me know what you think You should submit this to the Collector: http://collector.zope.org I have already had a good experience with it ;-) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No

[Zope-dev] PathIndex query options

2001-11-19 Thread Jeffrey P Shell
I've looked hard at the two pages returned for PathIndex on Zope.org, and cannot make sense out of how to use 'level'. From the example, which is full of paths like '/aa/bb/cc' and '/cc/bb/cc' - all of the same size and using the same three letters -, I cannot tell if I can do a path query

Re: [Zope-dev] PathIndex query options

2001-11-19 Thread Andreas Jung
- Original Message - From: Jeffrey P Shell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 19, 2001 21:36 Subject: [Zope-dev] PathIndex query options I've looked hard at the two pages returned for PathIndex on Zope.org, and cannot make sense out