Re: [Zope-dev] catalog object owners?

2001-02-27 Thread Chris Withers

Chris McDonough 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?
 
  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 features.

And one of it's most endearing :-)

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 to catalog values returned by method calls
would be sweet..

-Morten

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 McLaughlin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 3:38 PM
Subject: [Zope-dev] catalog object owners?


 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).

 ___
 Tim McLaughlin BCSwebservices.net
 Director, Technical Group1950 Old Gallows Road
 tel:  (703) 790.8081 x111 Suite 201
 [EMAIL PROTECTED] Vienna, VA 22182
 www .bcswebservices. net


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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
index the returned value?

If so, how long has this been available?

Cheers,

Morten

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] catalog object owners?


 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 encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 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: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] catalog object owners?


 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 encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 2.1 installs around to check with.

--
Steve Alexander
Software Engineer
Cat-Box limited


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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 features.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )