Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Sun, 25 Feb 2001, Steve Alexander wrote: I wasn't reading the code clearly the first time around. By far the simplest place to return copied results from methodB is to change the last line to Thanks, it all works nice. Nearly, that is. The reverse problem is now gone. But the fact

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Erik Enge wrote: I only get this when a ConflictError occur. Nope, it occurs every time I change to another object. I need to do some more testing here. It seems as if the 'objects' variable of 'methodB' is semi-persistent or something. Weired.

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Chris McDonough
The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empty list in the method body instead. - Original Message - From: "Erik Enge" [EMAIL PROTECTED] To: "Steve

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
Chris McDonough wrote: The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empty list in the method body instead. Of course! Yet another demonstration of the dangers of

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
Erik Enge wrote: The reverse problem is now gone. But the fact that every time I get a ConflictError it doesn't "flush" the 'objects' of methodB, and just seems to append to it, still remains. I only get this when a ConflictError occur. I don't know exactly why this might happen.

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge
On Mon, 26 Feb 2001, Steve Alexander wrote: Chris McDonough wrote: The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empty list in the method body instead. Of

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
Erik Enge wrote: On Mon, 26 Feb 2001, Steve Alexander wrote: Chris McDonough wrote: The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empty list in the method

[Zope-dev] ZCatalog problems

2001-02-26 Thread Morten W. Petersen
Hi guys, I'm having trouble making ZCatalog work. The problem is that there are 29 objects of a given meta type, with the same booleans that should be returned for an iteration; but only 20 are. Is this a result of caching perhaps? Or lazy results? Thanks, Morten

Re: [Zope-dev] ZCatalog problems

2001-02-26 Thread Steve Alexander
Morten W. Petersen wrote: Hi guys, I'm having trouble making ZCatalog work. The problem is that there are 29 objects of a given meta type, with the same booleans that should be returned for an iteration; but only 20 are. Is this a result of caching perhaps? Or lazy results? Could

Re: [Zope-dev] ZCatalog problems

2001-02-26 Thread Chris McDonough
Neat! - Original Message - From: "Steve Alexander" [EMAIL PROTECTED] To: "Morten W. Petersen" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 26, 2001 1:31 PM Subject: Re: [Zope-dev] ZCatalog problems Morten W. Petersen wrote: Hi guys, I'm having trouble

[Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
Anybody know how to catalog the object "owner"? I can't seem to find a property to catalog the value of getUserName(). (of course I could always kludge it with a property in the constructor, but I would prefer use what is already there).

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Morten W. Petersen
[Tim McLaughlin] | Anybody know how to catalog the object "owner"? I can't seem to find a | property to catalog the value of getUserName(). (of course I could always | kludge it with a property in the constructor, but I would prefer use what is | already there). I'll second that, the ability

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Chris McDonough
I'll second that, the ability to catalog values returned by method calls would be sweet.. Not sure what you mean, this works now. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Chris McDonough
getOwner should do it. This will return the actual owner object. It'd be preferable to catalog the tuple representing the owner path (this is returned by getOwner(1)), so you might want to create a method on the object that returns "getOwner(1)". - Original Message - From: "Tim

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Morten W. Petersen
[Chris McDonough] | I'll second that, the ability to catalog values returned by method calls | would be sweet.. | | Not sure what you mean, this works now. Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would

RE: [Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
how? I can't seem to do it. (I'm sure that I'm just being daft though). I tried both "title_and_id" and "title_and_id()" to no avail. -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 4:51 PM To: Tim McLaughlin; Morten W. Petersen Cc:

RE: [Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
never mind. dumb mistake. Thanks. -Original Message- From: Tim McLaughlin Sent: Monday, February 26, 2001 4:37 PM To: 'Chris McDonough'; Tim McLaughlin; Morten W. Petersen Cc: [EMAIL PROTECTED] Subject: RE: [Zope-dev] catalog object owners? how? I can't seem to do it. (I'm sure

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Steve Alexander
Morten W. Petersen wrote: Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value? yes. If so, how long has this been available? Absolutely ages! At least since 2.2. I don't have any

[Zope-dev] strip_html?

2001-02-26 Thread R. David Murray
I searched the NIP archives but didn't get any hits on strip_html. Is the code for this beast (used by zope.org to strip html out of partial text included from another page) available anywhere? --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Chris McDonough
Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value? If so, how long has this been available? As long as the catalog has been around, AFAICT... This is one of its very most basic

Re: [Zope-dev] More ZCatalog Stuff.

2001-02-26 Thread Michael R. Bernstein
Toby Dickenson wrote: If you are interested in a short-term hack, it is possible implement your own type of index and add it to an existing catalog, without having to modify any of the ZCatalog product. Ok, how? Please keep in mind that I'm more of a designer and integrator than a coder.

Re: [Zope-dev] How to build indexes in the MemberCatalog ofMembership Component?

2001-02-26 Thread Bill Anderson
On 23 Feb 2001 18:13:37 -0800, Dirksen wrote: Hi Bill, When I open the 'find objects' tab in MemberCatalog, I can't see 'PortalMember' in 'find object in type' selection field. How to build indexes then? Thanks in advance! Sorry for the delay, that's what i get for living on the bleeding

[Zope-dev] Search Features and Zope Directions Road Map

2001-02-26 Thread Ausum
Zope is a great application server, the same as its soon to be released Content Management Framework, because of its bet on Python, everybody say it. Nevertheless, after reading the Directions Roadmap from DC, I was surprised that a substantial improvement of the searching features of Zope,